---
title: "defaultWheelPickerItemHeight(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/defaultwheelpickeritemheight(_:)"
---

# defaultWheelPickerItemHeight(_:)

Sets the default wheel-style picker item height.

## Declaration

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

```

## Parameters

- `height`: The height for the picker items.

## Discussion

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)     } }

## See Also

### Choosing from a set of options

- [Picker](swiftui/picker.md)
- [pickerStyle(_:)](swiftui/view/pickerstyle(_:).md)
- [horizontalRadioGroupLayout()](swiftui/view/horizontalradiogrouplayout().md)
- [defaultWheelPickerItemHeight](swiftui/environmentvalues/defaultwheelpickeritemheight.md)
- [paletteSelectionEffect(_:)](swiftui/view/paletteselectioneffect(_:).md)
- [PaletteSelectionEffect](swiftui/paletteselectioneffect.md)
