File tree Expand file tree Collapse file tree 3 files changed +10
-17
lines changed
Examples/Messenger-Shared Expand file tree Collapse file tree 3 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,6 @@ - (void)configureSubviews
47
47
48
48
#pragma mark - SLKTypingIndicatorProtocol
49
49
50
- - (CGSize )intrinsicContentSize
51
- {
52
- return CGSizeMake (UIViewNoIntrinsicMetric, [self height ]);
53
- }
54
-
55
50
- (void )dismissIndicator
56
51
{
57
52
if (self.isVisible ) {
@@ -120,6 +115,11 @@ - (CAGradientLayer *)backgroundGradient
120
115
return _backgroundGradient;
121
116
}
122
117
118
+ - (CGSize )intrinsicContentSize
119
+ {
120
+ return CGSizeMake (UIViewNoIntrinsicMetric, [self height ]);
121
+ }
122
+
123
123
- (CGFloat )height
124
124
{
125
125
CGFloat height = 13.0 ;
Original file line number Diff line number Diff line change 27
27
*/
28
28
@property (nonatomic , getter = isVisible) BOOL visible;
29
29
30
- /* *
31
- Returns the natural size for the receiving view, considering only properties of the view itself.
32
- SLKTextViewController uses Auto-Layout internally, so this API is the most appropriate way to update the view dimensions dynamically.
33
- You can return UIViewNoIntrinsicMetric for any intrinsic size of a given dimension.
34
- */
35
- - (CGSize )intrinsicContentSize ;
36
-
37
30
@optional
38
31
39
32
/* *
Original file line number Diff line number Diff line change @@ -77,11 +77,6 @@ - (void)slk_commonInit
77
77
78
78
#pragma mark - SLKTypingIndicatorProtocol
79
79
80
- - (CGSize )intrinsicContentSize
81
- {
82
- return CGSizeMake (UIViewNoIntrinsicMetric, [self height ]);
83
- }
84
-
85
80
- (void )setVisible : (BOOL )visible
86
81
{
87
82
// Skip when updating the same value, specially to avoid inovking KVO unnecessary
@@ -165,6 +160,11 @@ - (NSAttributedString *)attributedString
165
160
return attributedString;
166
161
}
167
162
163
+ - (CGSize )intrinsicContentSize
164
+ {
165
+ return CGSizeMake (UIViewNoIntrinsicMetric, [self height ]);
166
+ }
167
+
168
168
- (CGFloat )height
169
169
{
170
170
CGFloat height = self.textFont .lineHeight ;
You can’t perform that action at this time.
0 commit comments