Enumeration

NSTextAlignment

These constants specify text alignment.

Declaration

enum NSTextAlignment : Int

Topics

Constants

case left

Text is visually left aligned.

case right

Text is visually right aligned.

case center

Text is visually center aligned.

case justified

Text is justified.

case natural

Use the default alignment associated with the current localization of the app. The default alignment for left-to-right scripts is NSTextAlignment.left, and the default alignment for right-to-left scripts is NSTextAlignment.right.

Initializers

init(CTTextAlignment)

Converts a Core Text alignment constant value to the matching constant value used by UIKit.