A set of methods that define the orientation of text for an object.
- iOS 7.0+
- macOS 10.7+
- tvOS 9.0+
In macOS, the
NSText classes adopt this protocol; in iOS, only the
NSText class implements it. An
NSText object returns the value from its associated text view when present; otherwise, it returns
horizontal by default. If you define a custom
NSText object, you can override this method and return
vertical to support laying out text vertically.