mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-07 14:53:35 +00:00
Access thread safe property to avoid assertion (#1281)
* Access thread safe property to avoid assertion after the ASDisplayNode's view or layer have been created. * Oops add these headers
This commit is contained in:
parent
c6fc05d9e6
commit
ee9ecc4025
@ -16,6 +16,7 @@
|
||||
#import <AsyncDisplayKit/ASAbsoluteLayoutSpec.h>
|
||||
#import <AsyncDisplayKit/ASTextNode.h>
|
||||
#import <AsyncDisplayKit/ASImageNode.h>
|
||||
#import <AsyncDisplayKit/ASInternalHelpers.h>
|
||||
|
||||
@interface ASButtonNode ()
|
||||
{
|
||||
@ -543,7 +544,7 @@
|
||||
- (NSString *)defaultAccessibilityLabel
|
||||
{
|
||||
ASLockScopeSelf();
|
||||
return _titleNode.accessibilityLabel;
|
||||
return _titleNode.defaultAccessibilityLabel;
|
||||
}
|
||||
|
||||
- (UIAccessibilityTraits)defaultAccessibilityTraits
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
#import <AsyncDisplayKit/ASAvailability.h>
|
||||
|
||||
#import <AsyncDisplayKit/ASControlNode.h>
|
||||
#import <AsyncDisplayKit/ASDisplayNode+Beta.h>
|
||||
#import <AsyncDisplayKit/ASTextNodeCommon.h>
|
||||
|
||||
#if (!AS_ENABLE_TEXTNODE)
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import <AsyncDisplayKit/ASControlNode.h>
|
||||
#import <AsyncDisplayKit/ASDisplayNode+Beta.h>
|
||||
#import <AsyncDisplayKit/ASTextNodeCommon.h>
|
||||
|
||||
@protocol ASTextLinePositionModifier;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user