Instance Property

layoutOrientation

The default layout orientation.

Required.

Declaration

iOS, Mac Catalyst, tvOS
@property(readonly, nonatomic) NSTextLayoutOrientation layoutOrientation;
macOS
@property(readonly) NSTextLayoutOrientation layoutOrientation;

Discussion

This property contains the default layout orientation for text in the object that adopts the protocol. If the text contains an explicit NSVerticalGlyphFormAttributeName attribute, that attribute overrides the value in this property. When rendering, TextKit assumes the coordinate system is appropriately rotated.

See Also

Getting Layout Orientation

NSTextLayoutOrientation

Describes the text layout orientation.