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.