find by id
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
150e03c2b2
commit
d7185b3f60
@ -46,7 +46,7 @@ class RadioSwatchGroupViewController: ModelScrollViewController<DefaultRadioSwa
|
||||
.publisher(for: .valueChanged)
|
||||
.sink { [weak self] sender in
|
||||
let selectors = self?.model.selectors.compactMap { existing in
|
||||
if existing.inputId == self?.model.selectors.first?.inputId {
|
||||
if existing.id == self?.model.selectors.first?.id {
|
||||
return existing.copyWith {
|
||||
$0.strikethrough = sender.isOn
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user