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

# orientation

The horizontal or vertical layout direction of the stack view.

```
var orientation: NSUserInterfaceLayoutOrientation { get set }
```

## Discussion

Default value is [`NSUserInterfaceLayoutOrientation.horizontal`](/documentation/AppKit/NSUserInterfaceLayoutOrientation/horizontal). For values that apply to this property, see [`NSUserInterfaceLayoutOrientation`](/documentation/AppKit/NSUserInterfaceLayoutOrientation).

---

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)