Initializer

init(_:)

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

Declaration

init(_ ctTextAlignment: CTTextAlignment)

Parameters

ctTextAlignment

The Core text alignment constant you want to convert.

Return Value

The UIKit text alignment that corresponds to the value specified in ctTextAlignment.

Discussion

Use this function when you need to map between the Core Text and UIKit constants for text alignment.

See Also

Text Manipulations

init(NSTextAlignment)

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software