@@ -74,6 +74,7 @@ @implementation SLKTextViewController
74
74
@synthesize presentedInPopover = _presentedInPopover;
75
75
@synthesize autoCompletionBackgroundView = _autoCompletionBackgroundView;
76
76
@synthesize menuAccesoryView = _menuAccesoryView;
77
+ @synthesize autoCompletionHairColor = _autoCompletionHairColor;
77
78
78
79
#pragma mark - Initializer
79
80
@@ -338,6 +339,14 @@ - (UIView *)autoCompletionBackgroundView
338
339
return _autoCompletionBackgroundView;
339
340
}
340
341
342
+ - (void )setAutoCompletionHairColor : (UIColor *)autoCompletionHairColor
343
+ {
344
+ if (_autoCompletionHairline) {
345
+ _autoCompletionHairline.backgroundColor = autoCompletionHairColor;
346
+ }
347
+ _autoCompletionHairColor = autoCompletionHairColor;
348
+ }
349
+
341
350
- (SLKTextInputbar *)textInputbar
342
351
{
343
352
if (!_textInputbar) {
@@ -2368,6 +2377,7 @@ - (void)slk_setupViewConstraints
2368
2377
[self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" V:|[backgroundView(>=0)][autoCompletionView(0)][typingIndicatorView]" options: 0 metrics: nil views: views]];
2369
2378
[self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" V:|-(>=0)-[autoCompletionView(0@750)][typingIndicatorView]" options: 0 metrics: nil views: views]];
2370
2379
[self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[scrollView]|" options: 0 metrics: nil views: views]];
2380
+ [self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[backgroundView]|" options: 0 metrics: nil views: views]];
2371
2381
[self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[autoCompletionView]|" options: 0 metrics: nil views: views]];
2372
2382
[self .view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @" H:|[typingIndicatorView]|" options: 0 metrics: nil views: views]];
2373
2383
NSString *format = [NSString stringWithFormat: @" H:|-%f -[textInputbar]-%f -|" , self .textInputBarLRC, self .textInputBarLRC];
0 commit comments