Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit e4da413

Browse files
maickiappleguy
authored andcommitted
Improve layout spec block documentation (#2547)
1 parent 11e07ff commit e4da413

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

AsyncDisplayKit/ASDisplayNode+Subclasses.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ NS_ASSUME_NONNULL_BEGIN
160160
* be done before display can be performed here, and using ivars to cache any valuable intermediate results is
161161
* encouraged.
162162
*
163-
* @note This method should not be called directly outside of ASDisplayNode; use -measure: or -calculatedLayout instead.
163+
* @note This method should not be called directly outside of ASDisplayNode; use -layoutThatFits: instead.
164164
*
165165
* @warning Subclasses that implement -layoutSpecThatFits: must not use .layoutSpecBlock. Doing so will trigger an
166166
* exception. A future version of the framework may support using both, calling them serially, with the .layoutSpecBlock

AsyncDisplayKit/ASDisplayNode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ extern NSInteger const ASDefaultDrawingPriority;
280280
* @warning Subclasses that implement -layoutSpecThatFits: must not also use .layoutSpecBlock. Doing so will trigger
281281
* an exception. A future version of the framework may support using both, calling them serially, with the
282282
* .layoutSpecBlock superseding any values set by the method override.
283+
*
284+
* @code ^ASLayoutSpec *(__kindof ASDisplayNode * _Nonnull node, ASSizeRange constrainedSize) {};
283285
*/
284286
@property (nonatomic, readwrite, copy, nullable) ASLayoutSpecBlock layoutSpecBlock;
285287

0 commit comments

Comments
 (0)