<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextLayoutOrientationProvider/layoutOrientation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextLayoutOrientationProvider(py)layoutOrientation"
  },
  "title" : "layoutOrientation"
}
-->

# layoutOrientation

The default layout orientation.

```
var layoutOrientation: NSLayoutManager.TextLayoutOrientation { get }
```

## Discussion

This property contains the default layout orientation for text in the object that adopts the protocol. If the text contains an explicit <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/Key/verticalGlyphForm> attribute, that attribute overrides the value in this property. When rendering, TextKit assumes the coordinate system is appropriately rotated.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)