- Use modern Objective-C syntax.

-  Simplify comparisons.
-  Remove dead stores.
This commit is contained in:
Eric Jensen
2016-03-15 22:34:29 -07:00
parent f97a509541
commit 33fda7ab49
25 changed files with 55 additions and 74 deletions

View File

@@ -177,7 +177,7 @@ NS_ASSUME_NONNULL_BEGIN
* @warning The first access to it must be on the main thread, and should only be used on the main thread thereafter as
* well.
*/
@property (nonatomic, readonly, retain) UIView *view;
@property (nonatomic, readonly, strong) UIView *view;
/**
* @abstract Returns whether a node's backing view or layer is loaded.
@@ -202,7 +202,7 @@ NS_ASSUME_NONNULL_BEGIN
* @warning The first access to it must be on the main thread, and should only be used on the main thread thereafter as
* well.
*/
@property (nonatomic, readonly, retain) CALayer * _Nonnull layer;
@property (nonatomic, readonly, strong) CALayer * _Nonnull layer;
/**
* @abstract Returns the Interface State of the node.
@@ -351,7 +351,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
* @abstract The receiver's immediate subnodes.
*/
@property (nonatomic, readonly, retain) NSArray<ASDisplayNode *> *subnodes;
@property (nonatomic, readonly, strong) NSArray<ASDisplayNode *> *subnodes;
/**
* @abstract The receiver's supernode.
@@ -617,7 +617,7 @@ NS_ASSUME_NONNULL_END
*/
- (void)setNeedsLayout;
@property (atomic, retain, nullable) id contents; // default=nil
@property (atomic, strong, nullable) id contents; // default=nil
@property (atomic, assign) BOOL clipsToBounds; // default==NO
@property (atomic, getter=isOpaque) BOOL opaque; // default==YES
@@ -645,9 +645,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, retain, nullable) UIColor *backgroundColor; // default=nil
@property (atomic, strong, nullable) UIColor *backgroundColor; // default=nil
@property (atomic, retain, null_resettable) UIColor *tintColor; // default=Blue
@property (atomic, strong, null_resettable) UIColor *tintColor; // default=Blue
- (void)tintColorDidChange; // Notifies the node when the tintColor has changed.
/**
@@ -697,7 +697,7 @@ NS_ASSUME_NONNULL_END
@property (nullable, atomic, copy) NSString *accessibilityValue;
@property (atomic, assign) UIAccessibilityTraits accessibilityTraits;
@property (atomic, assign) CGRect accessibilityFrame;
@property (nullable, atomic, retain) NSString *accessibilityLanguage;
@property (nullable, atomic, strong) NSString *accessibilityLanguage;
@property (atomic, assign) BOOL accessibilityElementsHidden;
@property (atomic, assign) BOOL accessibilityViewIsModal;
@property (atomic, assign) BOOL shouldGroupAccessibilityChildren;