find by id

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-09-16 11:09:04 -05:00
parent 150e03c2b2
commit d7185b3f60

View File

@ -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
}