Protocol

NSTextLayoutOrientationProvider

The NSTextLayoutOrientationProvider protocol defines the orientation of text for an object. In macOS, the NSTextContainer and NSTextView classes adopt this protocol; in iOS, only the NSTextContainer class implements it. A NSTextContainer object returns the value from its associated text view when present; otherwise, it returns horizontal by default. If you define a custom NSTextContainer object, you can override this method and return vertical to support laying out text vertically.

Symbols

Getting Layout Orientation

var layoutOrientation: NSTextLayoutOrientation
Required.

The default layout orientation.

Relationships