From 016d99f420dc6a8a237b4f8b794cb3cb00939ce1 Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Thu, 8 Dec 2016 15:53:05 +0000 Subject: [PATCH] Document default values of alignItems and justifyContent (#2733) --- AsyncDisplayKit/Layout/ASStackLayoutElement.h | 5 +++-- AsyncDisplayKit/Layout/ASStackLayoutSpec.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/AsyncDisplayKit/Layout/ASStackLayoutElement.h b/AsyncDisplayKit/Layout/ASStackLayoutElement.h index 9ff912bb07..cf3f4b56a4 100644 --- a/AsyncDisplayKit/Layout/ASStackLayoutElement.h +++ b/AsyncDisplayKit/Layout/ASStackLayoutElement.h @@ -46,13 +46,14 @@ NS_ASSUME_NONNULL_BEGIN /** * @abstract Specifies the initial size in the stack dimension for this object. - * Default to ASDimensionAuto + * Defaults to ASDimensionAuto. * Used when attached to a stack layout. */ @property (nonatomic, readwrite) ASDimension flexBasis; /** - * @abstract Orientation of the object along cross axis, overriding alignItems + * @abstract Orientation of the object along cross axis, overriding alignItems. + * Defaults to ASStackLayoutAlignSelfAuto. * Used when attached to a stack layout. */ @property (nonatomic, readwrite) ASStackLayoutAlignSelf alignSelf; diff --git a/AsyncDisplayKit/Layout/ASStackLayoutSpec.h b/AsyncDisplayKit/Layout/ASStackLayoutSpec.h index 448c540ffe..b36b590e75 100644 --- a/AsyncDisplayKit/Layout/ASStackLayoutSpec.h +++ b/AsyncDisplayKit/Layout/ASStackLayoutSpec.h @@ -55,9 +55,9 @@ NS_ASSUME_NONNULL_BEGIN Thus, it is preferred to those properties */ @property (nonatomic, assign) ASVerticalAlignment verticalAlignment; -/** The amount of space between each child. */ +/** The amount of space between each child. Defaults to ASStackLayoutJustifyContentStart */ @property (nonatomic, assign) ASStackLayoutJustifyContent justifyContent; -/** Orientation of children along cross axis */ +/** Orientation of children along cross axis. Defaults to ASStackLayoutAlignItemsStretch */ @property (nonatomic, assign) ASStackLayoutAlignItems alignItems; /** 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 */ @property (nonatomic, assign) BOOL baselineRelativeArrangement;