Improve layout spec block documentation (#2547)

This commit is contained in:
Michael Schneider
2016-11-05 18:45:18 -07:00
committed by appleguy
parent 11e07ff409
commit e4da4131cf
2 changed files with 3 additions and 1 deletions

View File

@@ -280,6 +280,8 @@ extern NSInteger const ASDefaultDrawingPriority;
* @warning Subclasses that implement -layoutSpecThatFits: must not also use .layoutSpecBlock. Doing so will trigger
* an exception. A future version of the framework may support using both, calling them serially, with the
* .layoutSpecBlock superseding any values set by the method override.
*
* @code ^ASLayoutSpec *(__kindof ASDisplayNode * _Nonnull node, ASSizeRange constrainedSize) {};
*/
@property (nonatomic, readwrite, copy, nullable) ASLayoutSpecBlock layoutSpecBlock;