@@ -80,14 +80,14 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
8080 * blocking time is very short. If the rangeTuningParameters are set to 0, still this option
8181 * outperforms UIKit: while the main thread is waiting, subnode display executes concurrently.
8282 */
83- @property ( nonatomic , assign ) BOOL neverShowPlaceholders;
83+ @property BOOL neverShowPlaceholders;
8484
8585/*
8686 * The kind of supplementary element this node represents, if any.
8787 *
8888 * @return The supplementary element kind, or @c nil if this node does not represent a supplementary element.
8989 */
90- @property (atomic , copy , readonly , nullable ) NSString *supplementaryElementKind;
90+ @property (nullable , copy , readonly ) NSString *supplementaryElementKind;
9191
9292/*
9393 * The layout attributes currently assigned to this node, if any.
@@ -96,25 +96,25 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
9696 * is called, when the node is not yet in the hierarchy and its frame cannot be converted to/from other nodes. Instead
9797 * you can use the layout attributes object to learn where and how the cell will be displayed.
9898 */
99- @property (nonatomic , strong , readonly , nullable ) UICollectionViewLayoutAttributes *layoutAttributes;
99+ @property (nullable , copy , readonly ) UICollectionViewLayoutAttributes *layoutAttributes;
100100
101101/* *
102102 * A Boolean value that is synchronized with the underlying collection or tableView cell property.
103103 * Setting this value is equivalent to calling selectItem / deselectItem on the collection or table.
104104 */
105- @property (nonatomic , assign , getter =isSelected) BOOL selected;
105+ @property (getter =isSelected) BOOL selected;
106106
107107/* *
108108 * A Boolean value that is synchronized with the underlying collection or tableView cell property.
109109 * Setting this value is equivalent to calling highlightItem / unHighlightItem on the collection or table.
110110 */
111- @property (nonatomic , assign , getter =isHighlighted) BOOL highlighted;
111+ @property (getter =isHighlighted) BOOL highlighted;
112112
113113/* *
114114 * The current index path of this cell node, or @c nil if this node is
115115 * not a valid item inside a table node or collection node.
116116 */
117- @property (atomic , readonly , nullable ) NSIndexPath *indexPath;
117+ @property (nullable , copy , readonly ) NSIndexPath *indexPath;
118118
119119/* *
120120 * BETA: API is under development. We will attempt to provide an easy migration pathway for any changes.
@@ -123,7 +123,7 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
123123 *
124124 * This property may be set off the main thread, but this method will never be invoked concurrently on the
125125 */
126- @property (atomic , nullable ) id nodeModel;
126+ @property (nullable ) id nodeModel;
127127
128128/* *
129129 * Asks the node whether it can be updated to the given node model.
@@ -136,13 +136,13 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
136136 * The backing view controller, or @c nil if the node wasn't initialized with backing view controller
137137 * @note This property must be accessed on the main thread.
138138 */
139- @property (nonatomic , readonly , nullable ) UIViewController *viewController;
139+ @property (nullable , nonatomic , readonly ) UIViewController *viewController;
140140
141141
142142/* *
143143 * The table- or collection-node that this cell is a member of, if any.
144144 */
145- @property (atomic , weak , readonly , nullable ) id <ASRangeManagingNode> owningNode;
145+ @property (nullable , weak , readonly ) id <ASRangeManagingNode> owningNode;
146146
147147/*
148148 * ASCellNode must forward touch events in order for UITableView and UICollectionView tap handling to work. Overriding
@@ -188,38 +188,38 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
188188 * @default UITableViewCellSelectionStyleDefault
189189 * ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
190190 */
191- @property ( nonatomic ) UITableViewCellSelectionStyle selectionStyle;
191+ @property UITableViewCellSelectionStyle selectionStyle;
192192
193193/* @abstract The focus style when a cell is focused
194194 * @default UITableViewCellFocusStyleDefault
195195 * ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
196196 */
197- @property ( nonatomic ) UITableViewCellFocusStyle focusStyle;
197+ @property UITableViewCellFocusStyle focusStyle;
198198
199199/* @abstract The view used as the background of the cell when it is selected.
200200 * ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
201201 * ASCollectionView uses these properties when configuring UICollectionViewCells that host ASCellNodes.
202202 */
203- @property (nonatomic , strong , nullable ) UIView *selectedBackgroundView;
203+ @property (nullable ) UIView *selectedBackgroundView;
204204
205205/* @abstract The accessory type view on the right side of the cell. Please take care of your ASLayoutSpec so that doesn't overlay the accessoryView
206206 * @default UITableViewCellAccessoryNone
207207 * ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
208208 */
209- @property ( nonatomic ) UITableViewCellAccessoryType accessoryType;
209+ @property UITableViewCellAccessoryType accessoryType;
210210
211211/* @abstract The inset of the cell separator line
212212 * ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
213213 */
214- @property ( nonatomic ) UIEdgeInsets separatorInset;
214+ @property UIEdgeInsets separatorInset;
215215
216216@end
217217
218218@interface ASCellNode (Unavailable)
219219
220- - (instancetype )initWithLayerBlock : (ASDisplayNodeLayerBlock)viewBlock didLoadBlock : (nullable ASDisplayNodeDidLoadBlock)didLoadBlock __unavailable ;
220+ - (instancetype )initWithLayerBlock : (ASDisplayNodeLayerBlock)viewBlock didLoadBlock : (nullable ASDisplayNodeDidLoadBlock)didLoadBlock NS_UNAVAILABLE ;
221221
222- - (instancetype )initWithViewBlock : (ASDisplayNodeViewBlock)viewBlock didLoadBlock : (nullable ASDisplayNodeDidLoadBlock)didLoadBlock __unavailable ;
222+ - (instancetype )initWithViewBlock : (ASDisplayNodeViewBlock)viewBlock didLoadBlock : (nullable ASDisplayNodeDidLoadBlock)didLoadBlock NS_UNAVAILABLE ;
223223
224224- (void )setLayerBacked : (BOOL )layerBacked AS_UNAVAILABLE(" ASCellNode does not support layer-backing, although subnodes may be layer-backed." );
225225
@@ -239,22 +239,22 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
239239/* *
240240 * Text to display.
241241 */
242- @property (nonatomic , copy ) NSString *text;
242+ @property (nullable , copy ) NSString *text;
243243
244244/* *
245245 * A dictionary containing key-value pairs for text attributes. You can specify the font, text color, text shadow color, and text shadow offset using the keys listed in NSString UIKit Additions Reference.
246246 */
247- @property (nonatomic , copy ) NSDictionary *textAttributes;
247+ @property (copy ) NSDictionary <NSAttributedStringKey, id> *textAttributes;
248248
249249/* *
250250 * The text inset or outset for each edge. The default value is 15.0 horizontal and 11.0 vertical padding.
251251 */
252- @property ( nonatomic , assign ) UIEdgeInsets textInsets;
252+ @property UIEdgeInsets textInsets;
253253
254254/* *
255255 * The text node used by this cell node.
256256 */
257- @property (nonatomic , strong , readonly ) ASTextNode *textNode;
257+ @property (readonly ) ASTextNode *textNode;
258258
259259@end
260260
0 commit comments