ColumnAlignment
public enum ColumnAlignment : Equatable
Describes how the column’s children will be horizontally aligned.
-
Children will be stretched to fit the horizontal size of the column.
Declaration
Swift
case fill
-
Using the specified alignment, children will be aligned relatively to each other, and then all the contents will be aligned to the column’s bounding box.
This case can be used for custom alignments. For common alignments you can use the existing static instances
leading
,center
, andtrailing
.Declaration
Swift
case align(to: HorizontalAlignment)
-
Children will be aligned to the leading edge of the column.
Declaration
Swift
public static let leading: Column.ColumnAlignment
-
Children will be horizontally centered in the column.
Declaration
Swift
public static let center: Column.ColumnAlignment
-
Children will be aligned to the trailing edge of the column.
Declaration
Swift
public static let trailing: Column.ColumnAlignment