pickerView(_:widthForComponent:)
Called by the picker view when it needs the row width to use for drawing row content.
Declaration
optional func pickerView(_ pickerView: UIPickerView, widthForComponent component: Int) -> CGFloatParameters
- pickerView:
The picker view requesting this information.
- component:
A zero-indexed number identifying a component of the picker view. Components are numbered left-to-right.
Return Value
A float value indicating the width of the row in points.