diff --git a/Former/RowFormers/PickerRowFormer.swift b/Former/RowFormers/PickerRowFormer.swift index 63997c5..eaef8bd 100644 --- a/Former/RowFormers/PickerRowFormer.swift +++ b/Former/RowFormers/PickerRowFormer.swift @@ -64,7 +64,9 @@ open class PickerRowFormer cell.selectionStyle = .none // UPDATES SELECTED ROW TO 0, IN CASE THE COUNT OF UPDATED PICKER ITEMS ARRAY IS LESS THAN PRIOR ARRAY - self.selectedRow = 0 + if pickerItems.count <= selectedRow { + selectedRow = 0 + } // RELOADS PICKER VIEW TO UPDATE ITEMS IN INLINE PICKER let picker = cell.formPickerView()