[ASCellNode] Fix applyLayoutAttributes not called, add readonly layoutAttributes property (#2321)

This commit is contained in:
Adlai Holler
2016-09-29 16:41:28 -04:00
committed by GitHub
parent 47f73576ef
commit f9ee1dd4b6
5 changed files with 90 additions and 1 deletions

View File

@@ -12,6 +12,8 @@
#import "ASCellNode.h"
NS_ASSUME_NONNULL_BEGIN
@protocol ASCellNodeInteractionDelegate <NSObject>
/**
@@ -49,4 +51,13 @@
- (void)__setSelectedFromUIKit:(BOOL)selected;
- (void)__setHighlightedFromUIKit:(BOOL)highlighted;
/**
* @note This could be declared @c copy, but since this is only settable internally, we can ensure
* that it's always safe simply to retain it, and copy if needed. Since @c UICollectionViewLayoutAttributes
* is always mutable, @c copy is never "free" like it is for e.g. NSString.
*/
@property (nonatomic, strong, nullable) UICollectionViewLayoutAttributes *layoutAttributes;
@end
NS_ASSUME_NONNULL_END