<!--
{
  "availability" : [
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/defaultWheelPickerItemHeight(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE28defaultWheelPickerItemHeightyQr14CoreFoundation7CGFloatVF"
  },
  "title" : "defaultWheelPickerItemHeight(_:)"
}
-->

# defaultWheelPickerItemHeight(_:)

Sets the default wheel-style picker item height.

```
nonisolated func defaultWheelPickerItemHeight(_ height: CGFloat) -> some View
```

## Parameters

`height`

The height for the picker items.

## Discussion

Use `defaultWheelPickerItemHeight(_:)` when you need to change the
default item height in a picker control. In this example, the view sets
the default height for picker elements to 30 points.

```
struct DefaultWheelPickerItemHeight: View {
    @State private var selected = 1
    var body: some View {
        VStack(spacing: 20) {
            Picker(selection: $selected, label: Text("Favorite Color")) {
                Text("Red").tag(1)
                Text("Green").tag(2)
                Text("Blue").tag(3)
                Text("Other").tag(4)
            }
        }
        .defaultWheelPickerItemHeight(30)
    }
}
```

![A screenshot showing the effect changing the height of picker wheel](images/com.apple.SwiftUI/SwiftUI-View-defaultWheelPickerItemHeight@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)