<!--
{
  "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.enum/fillProportionally",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIStackViewDistribution@UIStackViewDistributionFillProportionally"
  },
  "title" : "UIStackView.Distribution.fillProportionally"
}
-->

# UIStackView.Distribution.fillProportionally

A layout where the stack view resizes views proportionally based on their intrinsic content size to fill the available space along the stack view’s axis.

```
case fillProportionally
```

## Discussion

The following image shows an example of a horizontal stack view that uses the [`UIStackView.Distribution.fillProportionally`](/documentation/UIKit/UIStackView/Distribution-swift.enum/fillProportionally) distribution.

![A horizontal stack view with four arranged subviews. The stack view resizes the width of the arranged views so that they fill the available space along the stack view’s axis, with the views varying in size.](images/com.apple.uikit/media-2557449@2x.png)

---

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)