mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-05 18:58:51 +00:00
Add main thread warnings and setter/getter assert
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
{
|
||||
@private
|
||||
// Configuration.
|
||||
UITextView *_textView;
|
||||
NSDictionary *_typingAttributes;
|
||||
|
||||
// Core.
|
||||
@@ -134,7 +135,7 @@
|
||||
[self.view addSubview:_placeholderTextKitComponents.textView];
|
||||
|
||||
// Create and configure our text view.
|
||||
_textKitComponents.textView = _textView;
|
||||
_textKitComponents.textView = _textView;
|
||||
//_textKitComponents.textView = NO; // Unfortunately there's a bug here with iOS 7 DP5 that causes the text-view to only be one line high when scrollEnabled is NO. rdar://14729288
|
||||
_textKitComponents.textView.delegate = self;
|
||||
_textKitComponents.textView.editable = YES;
|
||||
@@ -189,6 +190,21 @@
|
||||
#pragma mark - Configuration
|
||||
@synthesize delegate = _delegate;
|
||||
|
||||
#pragma mark -
|
||||
@dynamic textView;
|
||||
|
||||
- (UITextView *)textView{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
return _textView;
|
||||
}
|
||||
|
||||
- (void)setTextView:(UITextView *)textView
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
_textView = textView;
|
||||
}
|
||||
|
||||
|
||||
#pragma mark -
|
||||
@dynamic typingAttributes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user