<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIStackView/distribution-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIStackView(py)distribution"
  },
  "title" : "distribution"
}
-->

# distribution

The distribution of the arranged views along the stack view’s axis.

```
var distribution: UIStackView.Distribution { get set }
```

## Discussion

This property determines how the stack view lays out its arranged views along its axis. The default value is [`UIStackView.Distribution.fill`](/documentation/UIKit/UIStackView/Distribution-swift.enum/fill). For a list of possible values, see [`UIStackView.Distribution`](/documentation/UIKit/UIStackView/Distribution-swift.enum).

---

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)