Instance Property

alignmentMode

Determines how individual lines of text are horizontally aligned within the receiver’s bounds.

Declaration

var alignmentMode: CATextLayerAlignmentMode { get set }

Discussion

The possible values are described in Horizontal alignment modes. Defaults to natural.

See Also

Text Alignment and Truncation

var isWrapped: Bool

Determines whether the text is wrapped to fit within the receiver’s bounds.

var truncationMode: CATextLayerTruncationMode

Determines how the text is truncated to fit within the receiver’s bounds.