mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-10 22:45:16 +00:00
* First approach to improve accessiblity * Clear accessibleElements in addSubview: and willRemoveSubview: * Adjust comments and rename viewNode to node * Create new accessible elements if screen coordinates of view changes * Remove legacy clearing of accessibleElements * Performance improvements * Use bounds for screenFrame calculation and indexOfObjectIdentical: in indexOfAccessiblityElement: * Add ASDK_ACCESSIBILITY_DISABLE compiler flag to disable custom accessibility code in ASDK * No need to set a frame if a subnode view is an accessibility element and not layer backed
29 lines
1.2 KiB
Objective-C
29 lines
1.2 KiB
Objective-C
//
|
|
// _ASDisplayView.h
|
|
// AsyncDisplayKit
|
|
//
|
|
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
|
// This source code is licensed under the BSD-style license found in the
|
|
// LICENSE file in the root directory of this source tree. An additional grant
|
|
// of patent rights can be found in the PATENTS file in the same directory.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
// This class is only for use by ASDisplayNode and should never be subclassed or used directly.
|
|
// Note that the "node" property is added to UIView directly via a category in ASDisplayNode.
|
|
|
|
@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;
|
|
- (void)__forwardTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
|
|
- (void)__forwardTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
|
|
- (void)__forwardTouchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
|
|
|
|
@end
|