<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSStackView/Gravity/leading",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSStackViewGravity@NSStackViewGravityLeading"
  },
  "title" : "leading"
}
-->

# leading

The leftmost or rightmost gravity area in a horizontally oriented stack view, based on the user interface language or the explicitly set user interface layout direction.

```
static var leading: NSStackView.Gravity { get }
```

## Discussion

For a left to right layout direction, the leading gravity area is on the left. Use only when the value of the [`orientation`](/documentation/AppKit/NSStackView/orientation) property is [`NSUserInterfaceLayoutOrientation.horizontal`](/documentation/AppKit/NSUserInterfaceLayoutOrientation/horizontal).

---

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)