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

# userInterfaceLayoutDirection

The layout direction for content in the view.

```
var userInterfaceLayoutDirection: NSUserInterfaceLayoutDirection { get set }
```

## Discussion

Different languages support different directions for laying out content. While many languages support left-to-right layout, some support right-to-left layout. This property contains the preferred layout direction employed by the view. It is the responsibility of the view to respect this value and lay out its content appropriately.

In macOS 10.9 and later, if no layout direction is set explicitly, this property contains the value reported by the app’s [`userInterfaceLayoutDirection`](/documentation/AppKit/NSApplication/userInterfaceLayoutDirection) property. In prior versions of macOS, it returns the value [`NSUserInterfaceLayoutDirection.leftToRight`](/documentation/AppKit/NSUserInterfaceLayoutDirection/leftToRight) by default. Certain AppKit subclasses, such as [`NSOutlineView`](/documentation/AppKit/NSOutlineView), respect the value returned by this method and adjust their layout accordingly.

---

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)