mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Annotate some new stuff
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
#import <AsyncDisplayKit/AsyncDisplayKit.h>
|
#import <AsyncDisplayKit/AsyncDisplayKit.h>
|
||||||
#import <MapKit/MapKit.h>
|
#import <MapKit/MapKit.h>
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
@interface ASMapNode : ASImageNode
|
@interface ASMapNode : ASImageNode
|
||||||
|
|
||||||
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate NS_DESIGNATED_INITIALIZER;
|
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate NS_DESIGNATED_INITIALIZER;
|
||||||
@@ -16,7 +18,7 @@
|
|||||||
/**
|
/**
|
||||||
This is the MKMapView that is the live map part of ASMapNode. This will be nil if .liveMap = NO. Note, MKMapView is *not* thread-safe.
|
This is the MKMapView that is the live map part of ASMapNode. This will be nil if .liveMap = NO. Note, MKMapView is *not* thread-safe.
|
||||||
*/
|
*/
|
||||||
@property (nonatomic, readonly) MKMapView *mapView;
|
@property (nullable, nonatomic, readonly) MKMapView *mapView;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set this to YES to turn the snapshot into an interactive MKMapView and vice versa. Defaults to NO.
|
Set this to YES to turn the snapshot into an interactive MKMapView and vice versa. Defaults to NO.
|
||||||
@@ -38,6 +40,8 @@
|
|||||||
* @discussion This method set the annotations of the static map view and also to the live map view. Passing an empty array clears the map of any annotations.
|
* @discussion This method set the annotations of the static map view and also to the live map view. Passing an empty array clears the map of any annotations.
|
||||||
* @param annotations An array of objects that conform to the MKAnnotation protocol
|
* @param annotations An array of objects that conform to the MKAnnotation protocol
|
||||||
*/
|
*/
|
||||||
- (void)setAnnotations:(NSArray *)annotations;
|
- (void)setAnnotations:(NSArray<id<MKAnnotation>> *)annotations;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_END
|
||||||
|
|||||||
@@ -19,6 +19,8 @@
|
|||||||
#import "ASThread.h"
|
#import "ASThread.h"
|
||||||
#import "ASLayoutOptions.h"
|
#import "ASLayoutOptions.h"
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Hierarchy state is propogated from nodes to all of their children when certain behaviors are required from the subtree.
|
Hierarchy state is propogated from nodes to all of their children when certain behaviors are required from the subtree.
|
||||||
Examples include rasterization and external driving of the .interfaceState property.
|
Examples include rasterization and external driving of the .interfaceState property.
|
||||||
@@ -101,9 +103,11 @@ typedef NS_OPTIONS(NSUInteger, ASHierarchyState)
|
|||||||
@end
|
@end
|
||||||
|
|
||||||
@interface UIView (ASDisplayNodeInternal)
|
@interface UIView (ASDisplayNodeInternal)
|
||||||
@property (nonatomic, assign, readwrite) ASDisplayNode *asyncdisplaykit_node;
|
@property (nullable, nonatomic, assign, readwrite) ASDisplayNode *asyncdisplaykit_node;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface CALayer (ASDisplayNodeInternal)
|
@interface CALayer (ASDisplayNodeInternal)
|
||||||
@property (nonatomic, assign, readwrite) ASDisplayNode *asyncdisplaykit_node;
|
@property (nullable, nonatomic, assign, readwrite) ASDisplayNode *asyncdisplaykit_node;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_END
|
||||||
|
|||||||
Reference in New Issue
Block a user