I am using different background colors for each component of a UIPickerView. There is a white gap between each compnent. I want to remove that.
func pickerView(_ pickerView: UIPickerView, widthForComponent component: Int) -> CGFloat {
does not seem to help.
you can set pickerView background color as clear color and add n numbers of views of equal width behind the picker view where n is number of component.