Traits
public struct Traits
Contains traits that affect the layout of individual children in the stack.
See StackElement.add(...) for details.
In Xcode
-
Controls the amount of extra space distributed to this child during underflow.
See
StackElement.add(...)for details.In Xcode
Declaration
Swift
public var growPriority: CGFloat -
Controls the amount of space allowed for this child during overflow.
See
StackElement.add(...)for details.In Xcode
Declaration
Swift
public var shrinkPriority: CGFloat -
Allows for custom alignment of a child along the cross axis.
See
StackElement.add(...)for details.In Xcode
Declaration
Swift
public var alignmentGuide: AlignmentGuide? -
Creates a new set of traits with default values.
Declaration
Swift
public init( growPriority: CGFloat = 1.0, shrinkPriority: CGFloat = 1.0, alignmentGuide: AlignmentGuide? = nil )
View on GitHub
Traits Structure Reference