<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PickerStyle/segmented",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11PickerStylePA2A09SegmentedcD0VRszrlE9segmentedAEvpZ"
  },
  "title" : "segmented"
}
-->

# segmented

A picker style that presents the options in a segmented control.

```
@export(implementation) static var segmented: SegmentedPickerStyle { get }
```

## Discussion

Use this style when there are two to five options. Consider using
[`menu`](/documentation/SwiftUI/PickerStyle/menu) when there are more than five options.

For each option’s label, use sentence-style capitalization without
ending punctuation, like a period or colon.

To apply this style to a picker, or to a view that contains pickers, use
the [`pickerStyle(_:)`](/documentation/SwiftUI/View/pickerStyle(_:)) modifier.

---

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)