Antoine/swift6#6
Antoine/swift6#6ntnmrndn wants to merge 17 commits intoFluidGroup:muukii/investigate-layout-assertionfrom
Conversation
| * well. | ||
| */ | ||
| @property (readonly) UIView *view; | ||
| @property (readonly) NS_SWIFT_UI_ACTOR UIView *view; |
There was a problem hiding this comment.
The documentation explains this: Only the first access (factory) is required to be in the main thread. Subsequent accesses may be called from background threads as both the view and layers may be passed between nodes and closures
There was a problem hiding this comment.
I'm not sure, do you mean the comment is wrong ? reading it I explicitly understand it as main thread only
There was a problem hiding this comment.
The first access to it must be on the main thread, and should only be used on the main thread thereafter as well.
The latter part refers to the view/layer instance itself (which is a UIKit rule more than Textures), not the property. If you check the internal implementation of - (UIView *)view on ASDisplaynode.mm, the main thread assertion is only when the view needs to be created. The same is true for - (CALayer *)layer. Texture needs to access this internally even if the node itself is meant for background use.
| * well. | ||
| */ | ||
| @property (readonly) CALayer * layer; | ||
| @property (readonly) NS_SWIFT_UI_ACTOR CALayer * layer; |
No description provided.