RowAlignment
public enum RowAlignment : Equatable
Describes how the row’s children will be vertically aligned.
-
Children will be stretched to fit the vertical size of the row.
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 row’s bounding box.
This case can be used for custom alignments. For common alignments you can use the existing static instances
top
,center
, andbottom
.Declaration
Swift
case align(to: VerticalAlignment)
-
Children will be aligned to the top edge of the row.
Declaration
Swift
public static let top: Row.RowAlignment
-
Children will be vertically centered in the row.
Declaration
Swift
public static let center: Row.RowAlignment
-
Children will be aligned to the bottom edge of the row.
Declaration
Swift
public static let bottom: Row.RowAlignment
-
Children will be aligned to the top edge of the row.
Declaration
Swift
@available(*, deprecated, renamed: "top") public static let leading: Row.RowAlignment
-
Children will be aligned to the bottom edge of the row.
Declaration
Swift
@available(*, deprecated, renamed: "bottom") public static let trailing: Row.RowAlignment