mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[Infer] change atomic properties to nonatomic (#1932)
This commit is contained in:
@@ -77,7 +77,7 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
|
||||
/*
|
||||
* ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
|
||||
*/
|
||||
//@property (atomic, retain) UIColor *backgroundColor;
|
||||
//@property (nonatomic, retain) UIColor *backgroundColor;
|
||||
@property (nonatomic) UITableViewCellSelectionStyle selectionStyle;
|
||||
|
||||
/**
|
||||
|
||||
@@ -165,7 +165,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* @abstract The name of this node, which will be displayed in `description`. The default value is nil.
|
||||
*/
|
||||
@property (nullable, atomic, copy) NSString *name;
|
||||
@property (nullable, nonatomic, copy) NSString *name;
|
||||
|
||||
/**
|
||||
* @abstract Returns whether the node is synchronous.
|
||||
@@ -193,7 +193,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*
|
||||
* @return YES if a view is loaded, or if layerBacked is YES and layer is not nil; NO otherwise.
|
||||
*/
|
||||
@property (atomic, readonly, assign, getter=isNodeLoaded) BOOL nodeLoaded;
|
||||
@property (nonatomic, readonly, assign, getter=isNodeLoaded) BOOL nodeLoaded;
|
||||
|
||||
/**
|
||||
* @abstract Returns whether the node rely on a layer instead of a view.
|
||||
@@ -303,7 +303,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*
|
||||
* @return The preferred frame size of this node
|
||||
*/
|
||||
@property (atomic, assign, readwrite) CGSize preferredFrameSize;
|
||||
@property (nonatomic, assign, readwrite) CGSize preferredFrameSize;
|
||||
|
||||
/** @name Managing the nodes hierarchy */
|
||||
|
||||
@@ -646,27 +646,27 @@ NS_ASSUME_NONNULL_END
|
||||
*/
|
||||
- (void)setNeedsLayout;
|
||||
|
||||
@property (atomic, strong, nullable) id contents; // default=nil
|
||||
@property (atomic, assign) BOOL clipsToBounds; // default==NO
|
||||
@property (atomic, getter=isOpaque) BOOL opaque; // default==YES
|
||||
@property (nonatomic, strong, nullable) id contents; // default=nil
|
||||
@property (nonatomic, assign) BOOL clipsToBounds; // default==NO
|
||||
@property (nonatomic, getter=isOpaque) BOOL opaque; // default==YES
|
||||
|
||||
@property (atomic, assign) BOOL allowsEdgeAntialiasing;
|
||||
@property (atomic, assign) unsigned int edgeAntialiasingMask; // default==all values from CAEdgeAntialiasingMask
|
||||
@property (nonatomic, assign) BOOL allowsEdgeAntialiasing;
|
||||
@property (nonatomic, assign) unsigned int edgeAntialiasingMask; // default==all values from CAEdgeAntialiasingMask
|
||||
|
||||
@property (atomic, getter=isHidden) BOOL hidden; // default==NO
|
||||
@property (atomic, assign) BOOL needsDisplayOnBoundsChange; // default==NO
|
||||
@property (atomic, assign) BOOL autoresizesSubviews; // default==YES (undefined for layer-backed nodes)
|
||||
@property (atomic, assign) UIViewAutoresizing autoresizingMask; // default==UIViewAutoresizingNone (undefined for layer-backed nodes)
|
||||
@property (atomic, assign) CGFloat alpha; // default=1.0f
|
||||
@property (atomic, assign) CGRect bounds; // default=CGRectZero
|
||||
@property (atomic, assign) CGRect frame; // default=CGRectZero
|
||||
@property (atomic, assign) CGPoint anchorPoint; // default={0.5, 0.5}
|
||||
@property (atomic, assign) CGFloat zPosition; // default=0.0
|
||||
@property (atomic, assign) CGPoint position; // default=CGPointZero
|
||||
@property (atomic, assign) CGFloat cornerRadius; // default=0.0
|
||||
@property (atomic, assign) CGFloat contentsScale; // default=1.0f. See @contentsScaleForDisplay for more info
|
||||
@property (atomic, assign) CATransform3D transform; // default=CATransform3DIdentity
|
||||
@property (atomic, assign) CATransform3D subnodeTransform; // default=CATransform3DIdentity
|
||||
@property (nonatomic, getter=isHidden) BOOL hidden; // default==NO
|
||||
@property (nonatomic, assign) BOOL needsDisplayOnBoundsChange; // default==NO
|
||||
@property (nonatomic, assign) BOOL autoresizesSubviews; // default==YES (undefined for layer-backed nodes)
|
||||
@property (nonatomic, assign) UIViewAutoresizing autoresizingMask; // default==UIViewAutoresizingNone (undefined for layer-backed nodes)
|
||||
@property (nonatomic, assign) CGFloat alpha; // default=1.0f
|
||||
@property (nonatomic, assign) CGRect bounds; // default=CGRectZero
|
||||
@property (nonatomic, assign) CGRect frame; // default=CGRectZero
|
||||
@property (nonatomic, assign) CGPoint anchorPoint; // default={0.5, 0.5}
|
||||
@property (nonatomic, assign) CGFloat zPosition; // default=0.0
|
||||
@property (nonatomic, assign) CGPoint position; // default=CGPointZero
|
||||
@property (nonatomic, assign) CGFloat cornerRadius; // default=0.0
|
||||
@property (nonatomic, assign) CGFloat contentsScale; // default=1.0f. See @contentsScaleForDisplay for more info
|
||||
@property (nonatomic, assign) CATransform3D transform; // default=CATransform3DIdentity
|
||||
@property (nonatomic, assign) CATransform3D subnodeTransform; // default=CATransform3DIdentity
|
||||
|
||||
/**
|
||||
* @abstract The node view's background color.
|
||||
@@ -674,9 +674,9 @@ NS_ASSUME_NONNULL_END
|
||||
* @discussion In contrast to UIView, setting a transparent color will not set opaque = NO.
|
||||
* This only affects nodes that implement +drawRect like ASTextNode.
|
||||
*/
|
||||
@property (atomic, strong, nullable) UIColor *backgroundColor; // default=nil
|
||||
@property (nonatomic, strong, nullable) UIColor *backgroundColor; // default=nil
|
||||
|
||||
@property (atomic, strong, null_resettable) UIColor *tintColor; // default=Blue
|
||||
@property (nonatomic, strong, null_resettable) UIColor *tintColor; // default=Blue
|
||||
- (void)tintColorDidChange; // Notifies the node when the tintColor has changed.
|
||||
|
||||
/**
|
||||
@@ -687,18 +687,18 @@ NS_ASSUME_NONNULL_END
|
||||
* Thus, UIViewContentModeRedraw is not allowed; use needsDisplayOnBoundsChange = YES instead, and pick an appropriate
|
||||
* contentMode for your content while it's being re-rendered.
|
||||
*/
|
||||
@property (atomic, assign) UIViewContentMode contentMode; // default=UIViewContentModeScaleToFill
|
||||
@property (nonatomic, assign) UIViewContentMode contentMode; // default=UIViewContentModeScaleToFill
|
||||
|
||||
@property (atomic, assign, getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default=YES (NO for layer-backed nodes)
|
||||
@property (nonatomic, assign, getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default=YES (NO for layer-backed nodes)
|
||||
#if TARGET_OS_IOS
|
||||
@property (atomic, assign, getter=isExclusiveTouch) BOOL exclusiveTouch; // default=NO
|
||||
@property (nonatomic, assign, getter=isExclusiveTouch) BOOL exclusiveTouch; // default=NO
|
||||
#endif
|
||||
@property (atomic, assign, nullable) CGColorRef shadowColor; // default=opaque rgb black
|
||||
@property (atomic, assign) CGFloat shadowOpacity; // default=0.0
|
||||
@property (atomic, assign) CGSize shadowOffset; // default=(0, -3)
|
||||
@property (atomic, assign) CGFloat shadowRadius; // default=3
|
||||
@property (atomic, assign) CGFloat borderWidth; // default=0
|
||||
@property (atomic, assign, nullable) CGColorRef borderColor; // default=opaque rgb black
|
||||
@property (nonatomic, assign, nullable) CGColorRef shadowColor; // default=opaque rgb black
|
||||
@property (nonatomic, assign) CGFloat shadowOpacity; // default=0.0
|
||||
@property (nonatomic, assign) CGSize shadowOffset; // default=(0, -3)
|
||||
@property (nonatomic, assign) CGFloat shadowRadius; // default=3
|
||||
@property (nonatomic, assign) CGFloat borderWidth; // default=0
|
||||
@property (nonatomic, assign, nullable) CGColorRef borderColor; // default=opaque rgb black
|
||||
|
||||
// UIResponder methods
|
||||
// By default these fall through to the underlying view, but can be overridden.
|
||||
|
||||
@@ -37,7 +37,7 @@ typedef UIImage * _Nullable (^asimagenode_modification_block_t)(UIImage *image);
|
||||
* the layer's contentsCenter property. Non-stretchable images work too, of
|
||||
* course.
|
||||
*/
|
||||
@property (nullable, atomic, strong) UIImage *image;
|
||||
@property (nullable, nonatomic, strong) UIImage *image;
|
||||
|
||||
/**
|
||||
@abstract The placeholder color.
|
||||
@@ -133,7 +133,7 @@ typedef UIImage * _Nullable (^asimagenode_modification_block_t)(UIImage *image);
|
||||
* @discussion Set this to an object which conforms to ASAnimatedImageProtocol
|
||||
* to have the ASImageNode playback an animated image.
|
||||
*/
|
||||
@property (nullable, atomic, strong) id <ASAnimatedImageProtocol> animatedImage;
|
||||
@property (nullable, nonatomic, strong) id <ASAnimatedImageProtocol> animatedImage;
|
||||
|
||||
/**
|
||||
* @abstract Pause the playback of an animated image.
|
||||
@@ -141,7 +141,7 @@ typedef UIImage * _Nullable (^asimagenode_modification_block_t)(UIImage *image);
|
||||
* @discussion Set to YES to pause playback of an animated image and NO to resume
|
||||
* playback.
|
||||
*/
|
||||
@property (atomic, assign) BOOL animatedImagePaused;
|
||||
@property (nonatomic, assign) BOOL animatedImagePaused;
|
||||
|
||||
/**
|
||||
* @abstract The runloop mode used to animate the image.
|
||||
@@ -150,7 +150,7 @@ typedef UIImage * _Nullable (^asimagenode_modification_block_t)(UIImage *image);
|
||||
* Setting NSDefaultRunLoopMode will cause animation to pause while scrolling (if the ASImageNode is
|
||||
* in a scroll view), which may improve scroll performance in some use cases.
|
||||
*/
|
||||
@property (atomic, strong) NSString *animatedImageRunLoopMode;
|
||||
@property (nonatomic, strong) NSString *animatedImageRunLoopMode;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -47,19 +47,19 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* The delegate, which must conform to the <ASNetworkImageNodeDelegate> protocol.
|
||||
*/
|
||||
@property (nullable, atomic, weak, readwrite) id<ASNetworkImageNodeDelegate> delegate;
|
||||
@property (nullable, nonatomic, weak, readwrite) id<ASNetworkImageNodeDelegate> delegate;
|
||||
|
||||
/**
|
||||
* A placeholder image to display while the URL is loading.
|
||||
*/
|
||||
@property (nullable, atomic, strong, readwrite) UIImage *defaultImage;
|
||||
@property (nullable, nonatomic, strong, readwrite) UIImage *defaultImage;
|
||||
|
||||
/**
|
||||
* The URL of a new image to download and display.
|
||||
*
|
||||
* @discussion Changing this property will reset the displayed image to a placeholder (<defaultImage>) while loading.
|
||||
*/
|
||||
@property (nullable, atomic, strong, readwrite) NSURL *URL;
|
||||
@property (nullable, nonatomic, strong, readwrite) NSURL *URL;
|
||||
|
||||
/**
|
||||
* Download and display a new image.
|
||||
|
||||
@@ -108,10 +108,10 @@ typedef NS_ENUM(NSUInteger, ASTextNodeHighlightStyle) {
|
||||
/**
|
||||
@abstract When you set these ASDisplayNode properties, they are composited into the bitmap instead of being applied by CA.
|
||||
|
||||
@property (atomic, assign) CGColorRef shadowColor;
|
||||
@property (atomic, assign) CGFloat shadowOpacity;
|
||||
@property (atomic, assign) CGSize shadowOffset;
|
||||
@property (atomic, assign) CGFloat shadowRadius;
|
||||
@property (nonatomic, assign) CGColorRef shadowColor;
|
||||
@property (nonatomic, assign) CGFloat shadowOpacity;
|
||||
@property (nonatomic, assign) CGSize shadowOffset;
|
||||
@property (nonatomic, assign) CGFloat shadowRadius;
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,12 +40,12 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
- (void)pause;
|
||||
- (BOOL)isPlaying;
|
||||
|
||||
@property (nullable, atomic, strong, readwrite) AVAsset *asset;
|
||||
@property (nullable, atomic, strong, readwrite) AVVideoComposition *videoComposition;
|
||||
@property (nullable, atomic, strong, readwrite) AVAudioMix *audioMix;
|
||||
@property (nullable, nonatomic, strong, readwrite) AVAsset *asset;
|
||||
@property (nullable, nonatomic, strong, readwrite) AVVideoComposition *videoComposition;
|
||||
@property (nullable, nonatomic, strong, readwrite) AVAudioMix *audioMix;
|
||||
|
||||
@property (nullable, atomic, strong, readonly) AVPlayer *player;
|
||||
@property (nullable, atomic, strong, readonly) AVPlayerItem *currentItem;
|
||||
@property (nullable, nonatomic, strong, readonly) AVPlayer *player;
|
||||
@property (nullable, nonatomic, strong, readonly) AVPlayerItem *currentItem;
|
||||
|
||||
|
||||
/**
|
||||
@@ -63,9 +63,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic, assign) int32_t periodicTimeObserverTimescale;
|
||||
|
||||
//! Defaults to AVLayerVideoGravityResizeAspect
|
||||
@property (atomic) NSString *gravity;
|
||||
@property (nonatomic) NSString *gravity;
|
||||
|
||||
@property (nullable, atomic, weak, readwrite) id<ASVideoNodeDelegate, ASNetworkImageNodeDelegate> delegate;
|
||||
@property (nullable, nonatomic, weak, readwrite) id<ASVideoNodeDelegate, ASNetworkImageNodeDelegate> delegate;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface ASVideoPlayerNode : ASDisplayNode
|
||||
|
||||
@property (nullable, atomic, weak) id<ASVideoPlayerNodeDelegate> delegate;
|
||||
@property (nullable, nonatomic, weak) id<ASVideoPlayerNodeDelegate> delegate;
|
||||
|
||||
@property (nonatomic, assign, readonly) CMTime duration;
|
||||
|
||||
@@ -49,12 +49,12 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic, assign, readwrite) BOOL muted;
|
||||
@property (nonatomic, assign, readonly) ASVideoNodePlayerState playerState;
|
||||
@property (nonatomic, assign, readwrite) BOOL shouldAggressivelyRecoverFromStall;
|
||||
@property (nullable, atomic, strong, readwrite) NSURL *placeholderImageURL;
|
||||
@property (nullable, nonatomic, strong, readwrite) NSURL *placeholderImageURL;
|
||||
|
||||
//! Defaults to 100
|
||||
@property (nonatomic, assign) int32_t periodicTimeObserverTimescale;
|
||||
//! Defaults to AVLayerVideoGravityResizeAspect
|
||||
@property (atomic) NSString *gravity;
|
||||
@property (nonatomic) NSString *gravity;
|
||||
|
||||
- (instancetype)initWithUrl:(NSURL*)url;
|
||||
- (instancetype)initWithAsset:(AVAsset*)asset;
|
||||
|
||||
@@ -45,7 +45,7 @@ NSString * const ASDataControllerRowNodeKind = @"_ASDataControllerRowNodeKind";
|
||||
BOOL _delegateDidDeleteSections;
|
||||
}
|
||||
|
||||
@property (atomic, assign) NSUInteger batchUpdateCounter;
|
||||
@property (nonatomic, assign) NSUInteger batchUpdateCounter;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
- (instancetype)initWithRects:(NSArray<NSValue *> *)rects;
|
||||
|
||||
@property (nullable, atomic, strong) __attribute__((NSObject)) CGColorRef highlightColor;
|
||||
@property (atomic, weak) CALayer *targetLayer;
|
||||
@property (nullable, nonatomic, strong) __attribute__((NSObject)) CGColorRef highlightColor;
|
||||
@property (nonatomic, weak) CALayer *targetLayer;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ NSInteger const ASDefaultTransactionPriority = 0;
|
||||
@interface ASDisplayNodeAsyncTransactionOperation : NSObject
|
||||
- (instancetype)initWithOperationCompletionBlock:(asyncdisplaykit_async_transaction_operation_completion_block_t)operationCompletionBlock;
|
||||
@property (nonatomic, copy) asyncdisplaykit_async_transaction_operation_completion_block_t operationCompletionBlock;
|
||||
@property (atomic, strong) id<NSObject> value; // set on bg queue by the operation block
|
||||
@property (nonatomic, strong) id<NSObject> value; // set on bg queue by the operation block
|
||||
@end
|
||||
|
||||
@implementation ASDisplayNodeAsyncTransactionOperation
|
||||
|
||||
@@ -67,16 +67,16 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
We don't declare them here, so _ASPendingState does not complain about them being not implemented,
|
||||
as they are already on NSObject
|
||||
|
||||
@property (atomic, assign) BOOL isAccessibilityElement;
|
||||
@property (atomic, copy) NSString *accessibilityLabel;
|
||||
@property (atomic, copy) NSString *accessibilityHint;
|
||||
@property (atomic, copy) NSString *accessibilityValue;
|
||||
@property (atomic, assign) UIAccessibilityTraits accessibilityTraits;
|
||||
@property (atomic, assign) CGRect accessibilityFrame;
|
||||
@property (atomic, strong) NSString *accessibilityLanguage;
|
||||
@property (atomic, assign) BOOL accessibilityElementsHidden;
|
||||
@property (atomic, assign) BOOL accessibilityViewIsModal;
|
||||
@property (atomic, assign) BOOL shouldGroupAccessibilityChildren;
|
||||
@property (nonatomic, assign) BOOL isAccessibilityElement;
|
||||
@property (nonatomic, copy) NSString *accessibilityLabel;
|
||||
@property (nonatomic, copy) NSString *accessibilityHint;
|
||||
@property (nonatomic, copy) NSString *accessibilityValue;
|
||||
@property (nonatomic, assign) UIAccessibilityTraits accessibilityTraits;
|
||||
@property (nonatomic, assign) CGRect accessibilityFrame;
|
||||
@property (nonatomic, strong) NSString *accessibilityLanguage;
|
||||
@property (nonatomic, assign) BOOL accessibilityElementsHidden;
|
||||
@property (nonatomic, assign) BOOL accessibilityViewIsModal;
|
||||
@property (nonatomic, assign) BOOL shouldGroupAccessibilityChildren;
|
||||
*/
|
||||
|
||||
// Accessibility identification support
|
||||
|
||||
@@ -24,7 +24,7 @@ typedef BOOL(^asdisplaynode_iscancelled_block_t)(void);
|
||||
|
||||
@default YES (note that this might change for subclasses)
|
||||
*/
|
||||
@property (atomic, assign) BOOL displaysAsynchronously;
|
||||
@property (nonatomic, assign) BOOL displaysAsynchronously;
|
||||
|
||||
/**
|
||||
@summary Cancels any pending async display.
|
||||
@@ -48,7 +48,7 @@ typedef BOOL(^asdisplaynode_iscancelled_block_t)(void);
|
||||
|
||||
@desc The asyncDelegate will have the opportunity to override the methods related to async display.
|
||||
*/
|
||||
@property (atomic, weak) id<_ASDisplayLayerDelegate> asyncDelegate;
|
||||
@property (nonatomic, weak) id<_ASDisplayLayerDelegate> asyncDelegate;
|
||||
|
||||
/**
|
||||
@summary Suspends both asynchronous and synchronous display of the receiver if YES.
|
||||
@@ -58,7 +58,7 @@ typedef BOOL(^asdisplaynode_iscancelled_block_t)(void);
|
||||
|
||||
@default NO
|
||||
*/
|
||||
@property (atomic, assign, getter=isDisplaySuspended) BOOL displaySuspended;
|
||||
@property (nonatomic, assign, getter=isDisplaySuspended) BOOL displaySuspended;
|
||||
|
||||
/**
|
||||
@summary Bypasses asynchronous rendering and performs a blocking display immediately on the current thread.
|
||||
|
||||
@@ -28,7 +28,7 @@ extern NSString *const ASAnimatedImageDefaultRunLoopMode;
|
||||
NSUInteger _playedLoops;
|
||||
}
|
||||
|
||||
@property (atomic, assign) CFTimeInterval lastDisplayLinkFire;
|
||||
@property (nonatomic, assign) CFTimeInterval lastDisplayLinkFire;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -85,15 +85,15 @@ for (ASDisplayNode *n in @[ nodes ]) {\
|
||||
@end
|
||||
|
||||
@interface ASTestDisplayNode : ASDisplayNode
|
||||
@property (atomic, copy) void (^willDeallocBlock)(ASTestDisplayNode *node);
|
||||
@property (atomic, copy) CGSize(^calculateSizeBlock)(ASTestDisplayNode *node, CGSize size);
|
||||
@property (atomic) BOOL hasFetchedData;
|
||||
@property (nonatomic, copy) void (^willDeallocBlock)(ASTestDisplayNode *node);
|
||||
@property (nonatomic, copy) CGSize(^calculateSizeBlock)(ASTestDisplayNode *node, CGSize size);
|
||||
@property (nonatomic) BOOL hasFetchedData;
|
||||
|
||||
@property (atomic) BOOL displayRangeStateChangedToYES;
|
||||
@property (atomic) BOOL displayRangeStateChangedToNO;
|
||||
@property (nonatomic) BOOL displayRangeStateChangedToYES;
|
||||
@property (nonatomic) BOOL displayRangeStateChangedToNO;
|
||||
|
||||
@property (atomic) BOOL loadStateChangedToYES;
|
||||
@property (atomic) BOOL loadStateChangedToNO;
|
||||
@property (nonatomic) BOOL loadStateChangedToYES;
|
||||
@property (nonatomic) BOOL loadStateChangedToNO;
|
||||
@end
|
||||
|
||||
@interface ASTestResponderNode : ASTestDisplayNode
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define NumberOfReloadIterations 50
|
||||
|
||||
@interface ASTestDataController : ASChangeSetDataController
|
||||
@property (atomic) int numberOfAllNodesRelayouts;
|
||||
@property (nonatomic) int numberOfAllNodesRelayouts;
|
||||
@end
|
||||
|
||||
@implementation ASTestDataController
|
||||
@@ -36,7 +36,7 @@
|
||||
@end
|
||||
|
||||
@interface ASTestTableView : ASTableView
|
||||
@property (atomic, copy) void (^willDeallocBlock)(ASTableView *tableView);
|
||||
@property (nonatomic, copy) void (^willDeallocBlock)(ASTableView *tableView);
|
||||
@end
|
||||
|
||||
@implementation ASTestTableView
|
||||
@@ -61,7 +61,7 @@
|
||||
@end
|
||||
|
||||
@interface ASTableViewTestDelegate : NSObject <ASTableViewDataSource, ASTableViewDelegate>
|
||||
@property (atomic, copy) void (^willDeallocBlock)(ASTableViewTestDelegate *delegate);
|
||||
@property (nonatomic, copy) void (^willDeallocBlock)(ASTableViewTestDelegate *delegate);
|
||||
@end
|
||||
|
||||
@implementation ASTableViewTestDelegate
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
@interface ASTestTextCellNode : ASTextCellNode
|
||||
/** Calculated by counting how many times -layoutSpecThatFits: is called on the main thread. */
|
||||
@property (atomic) int numberOfLayoutsOnMainThread;
|
||||
@property (nonatomic) int numberOfLayoutsOnMainThread;
|
||||
@end
|
||||
|
||||
@implementation ASTestTextCellNode
|
||||
@@ -154,7 +154,7 @@
|
||||
@end
|
||||
|
||||
@interface ASTableViewTests : XCTestCase
|
||||
@property (atomic, retain) ASTableView *testTableView;
|
||||
@property (nonatomic, retain) ASTableView *testTableView;
|
||||
@end
|
||||
|
||||
@implementation ASTableViewTests
|
||||
|
||||
@@ -37,11 +37,11 @@
|
||||
}
|
||||
|
||||
|
||||
@property (atomic, readwrite) ASInterfaceState interfaceState;
|
||||
@property (atomic, readonly) ASDisplayNode *spinner;
|
||||
@property (atomic, readwrite) ASDisplayNode *playerNode;
|
||||
@property (atomic, readwrite) AVPlayer *player;
|
||||
@property (atomic, readwrite) BOOL shouldBePlaying;
|
||||
@property (nonatomic, readwrite) ASInterfaceState interfaceState;
|
||||
@property (nonatomic, readonly) ASDisplayNode *spinner;
|
||||
@property (nonatomic, readwrite) ASDisplayNode *playerNode;
|
||||
@property (nonatomic, readwrite) AVPlayer *player;
|
||||
@property (nonatomic, readwrite) BOOL shouldBePlaying;
|
||||
|
||||
- (void)setVideoPlaceholderImage:(UIImage *)image;
|
||||
- (void)prepareToPlayAsset:(AVAsset *)asset withKeys:(NSArray *)requestedKeys;
|
||||
|
||||
Reference in New Issue
Block a user