Skip to content

Commit 1f3dcdf

Browse files
committed
Use option index as row tag value in SelectorViewController.
1 parent 83e691c commit 1f3dcdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Rows/Controllers/SelectorViewController.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ open class _SelectorViewController<Row: SelectableRowType, OptionsRow: OptionsPr
210210
}
211211
}
212212
}
213-
for option in options {
214-
section <<< Row.init(String(describing: option)) { lrow in
213+
for (index, option) in options.enumerated() {
214+
section <<< Row.init(String(index)) { lrow in
215215
lrow.title = self.row.displayValueFor?(option)
216216
lrow.selectableValue = option
217217
lrow.value = self.row.value == option ? option : nil

0 commit comments

Comments
 (0)