mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[ASDisplayNode] added asyncTraitCollectionDidChange method (#1831)
Subclasses can override this method to react to a trait collection change
This commit is contained in:
@@ -465,6 +465,13 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
- (NSString *)descriptionForRecursiveDescription;
|
||||
|
||||
/**
|
||||
* @abstract Called when the node's ASTraitCollection changes
|
||||
*
|
||||
* @discussion Subclasses can override this method to react to a trait collection change.
|
||||
*/
|
||||
- (void)asyncTraitCollectionDidChange;
|
||||
|
||||
@end
|
||||
|
||||
#define ASDisplayNodeAssertThreadAffinity(viewNode) ASDisplayNodeAssert(!viewNode || ASDisplayNodeThreadIsMain() || !(viewNode).nodeLoaded, @"Incorrect display node thread affinity - this method should not be called off the main thread after the ASDisplayNode's view or layer have been created")
|
||||
|
||||
Reference in New Issue
Block a user