Horizontal alignment modes

These constants are used by the alignmentMode property.

Topics

Constants

static let natural: CATextLayerAlignmentMode

Use the natural alignment of the text’s script.

static let left: CATextLayerAlignmentMode

Text is visually left aligned.

static let right: CATextLayerAlignmentMode

Text is visually right aligned.

static let center: CATextLayerAlignmentMode

Text is visually center aligned.