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

# userInterfaceLayoutDirection

The layout direction of the user interface.

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

## Discussion

The default value of this property is [`NSUserInterfaceLayoutDirection.leftToRight`](/documentation/AppKit/NSUserInterfaceLayoutDirection/leftToRight). When the property is set to [`NSUserInterfaceLayoutDirection.rightToLeft`](/documentation/AppKit/NSUserInterfaceLayoutDirection/rightToLeft), the table view flips the visual order of the table columns, but the logical order remains unchanged. Although this property was introduced in macOS 10.12, in earlier versions the property always returned [`NSUserInterfaceLayoutDirection.leftToRight`](/documentation/AppKit/NSUserInterfaceLayoutDirection/leftToRight).

---

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)