Alignment
public enum Alignment : Equatable
-
Align text to the top of the available line height, with extra space added at the bottom. This makes line height behave like traditional leading.
Declaration
Swift
case top
-
Center text within the available line height. This makes line height behave like half-leading, and matches the model used by CSS.
Declaration
Swift
case center
-
Align text to the bottom of the available line height, with extra space added at the top. This is the default behavior of
UILabel
on iOS.Declaration
Swift
case bottom