mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 03:09:56 +00:00
Fix accessibleElements warning in _ASDisplayView (#2100)
This commit is contained in:
parent
85f2a2a128
commit
c409e79714
@ -16,8 +16,6 @@
|
||||
|
||||
@interface _ASDisplayView : UIView
|
||||
|
||||
@property (copy, nonatomic) NSArray *accessibleElements;
|
||||
|
||||
// These methods expose a way for ASDisplayNode touch events to let the view call super touch events
|
||||
// Some UIKit mechanisms, like UITableView and UICollectionView selection handling, require this to work
|
||||
- (void)__forwardTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
//
|
||||
|
||||
#import "_ASDisplayView.h"
|
||||
#import "_ASDisplayViewAccessiblity.h"
|
||||
|
||||
#import "_ASCoreAnimationExtras.h"
|
||||
#import "ASDisplayNodeInternal.h"
|
||||
@ -34,7 +35,6 @@
|
||||
CGRect _lastAccessibleElementsFrame;
|
||||
}
|
||||
|
||||
@synthesize accessibleElements = _accessibleElements;
|
||||
@synthesize asyncdisplaykit_node = _node;
|
||||
|
||||
+ (Class)layerClass
|
||||
@ -165,7 +165,7 @@
|
||||
[super addSubview:view];
|
||||
|
||||
#ifndef ASDK_ACCESSIBILITY_DISABLE
|
||||
[self setAccessibleElements:nil];
|
||||
self.accessibleElements = nil;
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -174,7 +174,7 @@
|
||||
[super willRemoveSubview:subview];
|
||||
|
||||
#ifndef ASDK_ACCESSIBILITY_DISABLE
|
||||
[self setAccessibleElements:nil];
|
||||
self.accessibleElements = nil;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -9,3 +9,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface _ASDisplayView (UIAccessibilityContainer)
|
||||
@property (copy, nonatomic) NSArray *accessibleElements;
|
||||
@end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user