@@ -176,7 +176,7 @@ - (void)viewDidLoad
176
176
177
177
[self .view addSubview: self .scrollViewProxy];
178
178
[self .view addSubview: self .autoCompletionView];
179
- [self .view addSubview: self .typingIndicatorView ];
179
+ [self .view addSubview: self .typingIndicatorProxyView ];
180
180
[self .view addSubview: self .textInputbar];
181
181
182
182
[self slk_setupViewConstraints ];
@@ -339,7 +339,10 @@ - (SLKTextInputbar *)textInputbar
339
339
340
340
- (SLKTypingIndicatorView *)typingIndicatorView
341
341
{
342
- return (SLKTypingIndicatorView *)self.typingIndicatorProxyView ;
342
+ if ([_typingIndicatorProxyView isKindOfClass: [SLKTypingIndicatorView class ]]) {
343
+ return (SLKTypingIndicatorView *)self.typingIndicatorProxyView ;
344
+ }
345
+ return nil ;
343
346
}
344
347
345
348
- (BOOL )isExternalKeyboardDetected
@@ -1796,7 +1799,7 @@ - (void)slk_setupViewConstraints
1796
1799
{
1797
1800
NSDictionary *views = @{@" scrollView" : self.scrollViewProxy ,
1798
1801
@" autoCompletionView" : self.autoCompletionView ,
1799
- @" typingIndicatorView" : self.typingIndicatorView ,
1802
+ @" typingIndicatorView" : self.typingIndicatorProxyView ,
1800
1803
@" textInputbar" : self.textInputbar ,
1801
1804
};
1802
1805
@@ -1808,7 +1811,7 @@ - (void)slk_setupViewConstraints
1808
1811
1809
1812
self.scrollViewHC = [self .view slk_constraintForAttribute: NSLayoutAttributeHeight firstItem: self .scrollViewProxy secondItem: nil ];
1810
1813
self.autoCompletionViewHC = [self .view slk_constraintForAttribute: NSLayoutAttributeHeight firstItem: self .autoCompletionView secondItem: nil ];
1811
- self.typingIndicatorViewHC = [self .view slk_constraintForAttribute: NSLayoutAttributeHeight firstItem: self .typingIndicatorView secondItem: nil ];
1814
+ self.typingIndicatorViewHC = [self .view slk_constraintForAttribute: NSLayoutAttributeHeight firstItem: self .typingIndicatorProxyView secondItem: nil ];
1812
1815
self.textInputbarHC = [self .view slk_constraintForAttribute: NSLayoutAttributeHeight firstItem: self .textInputbar secondItem: nil ];
1813
1816
self.keyboardHC = [self .view slk_constraintForAttribute: NSLayoutAttributeBottom firstItem: self .view secondItem: self .textInputbar];
1814
1817
0 commit comments