mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Assert against the user trying to set isLayerBacked on ASEditableTextNode
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
@protocol ASEditableTextNodeDelegate;
|
@protocol ASEditableTextNodeDelegate;
|
||||||
|
|
||||||
/// @abstract ASEditableTextNode implements a node that supports text editing.
|
/// @abstract ASEditableTextNode implements a view-backed node that supports text editing.
|
||||||
@interface ASEditableTextNode : ASDisplayNode
|
@interface ASEditableTextNode : ASDisplayNode
|
||||||
|
|
||||||
// @abstract The text node's delegate, which must conform to the <ASEditableTextNodeDelegate> protocol.
|
// @abstract The text node's delegate, which must conform to the <ASEditableTextNodeDelegate> protocol.
|
||||||
|
|||||||
@@ -188,6 +188,11 @@
|
|||||||
_placeholderTextKitComponents.textView.opaque = opaque;
|
_placeholderTextKitComponents.textView.opaque = opaque;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)setLayerBacked:(BOOL)layerBacked {
|
||||||
|
ASDisplayNodeAssert(!layerBacked, @"Cannot set isLayerBacked to YES on ASEditableTextNode – all instances are view-backed.");
|
||||||
|
[super setLayerBacked:layerBacked];
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark - Configuration
|
#pragma mark - Configuration
|
||||||
@synthesize delegate = _delegate;
|
@synthesize delegate = _delegate;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user