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

Commit 081686b

Browse files
nguyenhuygarrettmoon
authored andcommitted
Document default values of alignItems and justifyContent (#2733)
1 parent 8161c47 commit 081686b

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

AsyncDisplayKit/Layout/ASStackLayoutElement.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ NS_ASSUME_NONNULL_BEGIN
4646

4747
/**
4848
* @abstract Specifies the initial size in the stack dimension for this object.
49-
* Default to ASDimensionAuto
49+
* Defaults to ASDimensionAuto.
5050
* Used when attached to a stack layout.
5151
*/
5252
@property (nonatomic, readwrite) ASDimension flexBasis;
5353

5454
/**
55-
* @abstract Orientation of the object along cross axis, overriding alignItems
55+
* @abstract Orientation of the object along cross axis, overriding alignItems.
56+
* Defaults to ASStackLayoutAlignSelfAuto.
5657
* Used when attached to a stack layout.
5758
*/
5859
@property (nonatomic, readwrite) ASStackLayoutAlignSelf alignSelf;

AsyncDisplayKit/Layout/ASStackLayoutSpec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ NS_ASSUME_NONNULL_BEGIN
5555
Thus, it is preferred to those properties
5656
*/
5757
@property (nonatomic, assign) ASVerticalAlignment verticalAlignment;
58-
/** The amount of space between each child. */
58+
/** The amount of space between each child. Defaults to ASStackLayoutJustifyContentStart */
5959
@property (nonatomic, assign) ASStackLayoutJustifyContent justifyContent;
60-
/** Orientation of children along cross axis */
60+
/** Orientation of children along cross axis. Defaults to ASStackLayoutAlignItemsStretch */
6161
@property (nonatomic, assign) ASStackLayoutAlignItems alignItems;
6262
/** If YES the vertical spacing between two views is measured from the last baseline of the top view to the top of the bottom view */
6363
@property (nonatomic, assign) BOOL baselineRelativeArrangement;

0 commit comments

Comments
 (0)