mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 11:50: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
|
@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
|
// 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
|
// Some UIKit mechanisms, like UITableView and UICollectionView selection handling, require this to work
|
||||||
- (void)__forwardTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
|
- (void)__forwardTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#import "_ASDisplayView.h"
|
#import "_ASDisplayView.h"
|
||||||
|
#import "_ASDisplayViewAccessiblity.h"
|
||||||
|
|
||||||
#import "_ASCoreAnimationExtras.h"
|
#import "_ASCoreAnimationExtras.h"
|
||||||
#import "ASDisplayNodeInternal.h"
|
#import "ASDisplayNodeInternal.h"
|
||||||
@ -34,7 +35,6 @@
|
|||||||
CGRect _lastAccessibleElementsFrame;
|
CGRect _lastAccessibleElementsFrame;
|
||||||
}
|
}
|
||||||
|
|
||||||
@synthesize accessibleElements = _accessibleElements;
|
|
||||||
@synthesize asyncdisplaykit_node = _node;
|
@synthesize asyncdisplaykit_node = _node;
|
||||||
|
|
||||||
+ (Class)layerClass
|
+ (Class)layerClass
|
||||||
@ -165,7 +165,7 @@
|
|||||||
[super addSubview:view];
|
[super addSubview:view];
|
||||||
|
|
||||||
#ifndef ASDK_ACCESSIBILITY_DISABLE
|
#ifndef ASDK_ACCESSIBILITY_DISABLE
|
||||||
[self setAccessibleElements:nil];
|
self.accessibleElements = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -174,7 +174,7 @@
|
|||||||
[super willRemoveSubview:subview];
|
[super willRemoveSubview:subview];
|
||||||
|
|
||||||
#ifndef ASDK_ACCESSIBILITY_DISABLE
|
#ifndef ASDK_ACCESSIBILITY_DISABLE
|
||||||
[self setAccessibleElements:nil];
|
self.accessibleElements = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,3 +9,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
@interface _ASDisplayView (UIAccessibilityContainer)
|
||||||
|
@property (copy, nonatomic) NSArray *accessibleElements;
|
||||||
|
@end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user