---
title: apportionsSegmentWidthsByContent
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisegmentedcontrol/apportionssegmentwidthsbycontent
---

# apportionsSegmentWidthsByContent

Indicates whether the control attempts to adjust segment widths based on their content widths.

## Declaration

```swift
var apportionsSegmentWidthsByContent: Bool { get set }
```

## Discussion

Discussion If the value of this property is true, for segments whose width value is 0, the control attempts to adjust segment widths based on their content widths. The default is false.

## See Also

### Managing segment behavior and appearance

- [isMomentary](uikit/uisegmentedcontrol/ismomentary.md)
- [setEnabled(_:forSegmentAt:)](uikit/uisegmentedcontrol/setenabled(_:forsegmentat:).md)
- [isEnabledForSegment(at:)](uikit/uisegmentedcontrol/isenabledforsegment(at:).md)
- [setContentOffset(_:forSegmentAt:)](uikit/uisegmentedcontrol/setcontentoffset(_:forsegmentat:).md)
- [contentOffsetForSegment(at:)](uikit/uisegmentedcontrol/contentoffsetforsegment(at:).md)
- [setWidth(_:forSegmentAt:)](uikit/uisegmentedcontrol/setwidth(_:forsegmentat:).md)
- [widthForSegment(at:)](uikit/uisegmentedcontrol/widthforsegment(at:).md)
