Skip to content

Commit

Permalink
Append option index to the tags of the rows in SelectorViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
rayx committed Mar 24, 2020
1 parent 83e691c commit 8b04038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Rows/Controllers/SelectorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ open class _SelectorViewController<Row: SelectableRowType, OptionsRow: OptionsPr
}
}
}
for option in options {
section <<< Row.init(String(describing: option)) { lrow in
for (index, option) in options.enumerated() {
section <<< Row.init(String(describing: option) + String(index)) { lrow in
lrow.title = self.row.displayValueFor?(option)
lrow.selectableValue = option
lrow.value = self.row.value == option ? option : nil
Expand Down

0 comments on commit 8b04038

Please sign in to comment.