init(_:)
Converts a Core Text alignment constant value to the matching constant value in UIKit.
Declaration
init(_ ctTextAlignment: CTTextAlignment)Parameters
- ctTextAlignment:
The Core Text alignment constant 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.