---
title: "pickerView(_:rowHeightForComponent:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipickerviewdelegate/pickerview(_:rowheightforcomponent:)"
---

# pickerView(_:rowHeightForComponent:)

Called by the picker view when it needs the row height to use for drawing row content.

## Declaration

```swift
optional func pickerView(_ pickerView: UIPickerView, rowHeightForComponent component: Int) -> CGFloat
```

## Parameters

- `pickerView`: The picker view requesting this information.
- `component`: A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.

## Return Value

Return Value A float value indicating the height of the row in points.

## See Also

### Setting the dimensions of the picker view

- [pickerView(_:widthForComponent:)](uikit/uipickerviewdelegate/pickerview(_:widthforcomponent:).md)
