mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Revert "Revert "Make ASDisplayNode.name Thread Safe""
This reverts commit 906d7c759b.
This commit is contained in:
@@ -108,6 +108,10 @@ typedef void (^ASDisplayNodeDidLoadBlock)(ASDisplayNode *node);
|
||||
|
||||
/** @name Properties */
|
||||
|
||||
/**
|
||||
* @abstract The name of this node, which will be displayed in `description`. The default value is nil.
|
||||
*/
|
||||
@property (atomic, copy) NSString *name;
|
||||
|
||||
/**
|
||||
* @abstract Returns whether the node is synchronous.
|
||||
@@ -539,7 +543,7 @@ typedef void (^ASDisplayNodeDidLoadBlock)(ASDisplayNode *node);
|
||||
* Using them will not cause the actual view/layer to be created, and will be applied when it is created (when the view
|
||||
* or layer property is accessed).
|
||||
*
|
||||
* After the view is created, the properties pass through to the view directly as if called on the main thread.
|
||||
* - NOTE: After the view or layer is created, the properties pass through to the view or layer directly and must be called on the main thread.
|
||||
*
|
||||
* See UIView and CALayer for documentation on these common properties.
|
||||
*/
|
||||
@@ -583,7 +587,6 @@ typedef void (^ASDisplayNodeDidLoadBlock)(ASDisplayNode *node);
|
||||
@property (atomic, assign) CGFloat contentsScale; // default=1.0f. See @contentsScaleForDisplay for more info
|
||||
@property (atomic, assign) CATransform3D transform; // default=CATransform3DIdentity
|
||||
@property (atomic, assign) CATransform3D subnodeTransform; // default=CATransform3DIdentity
|
||||
@property (atomic, copy) NSString *name; // default=nil. Use this to tag your layers in the server-recurse-description / pca or for your own purposes
|
||||
|
||||
/**
|
||||
* @abstract The node view's background color.
|
||||
|
||||
Reference in New Issue
Block a user