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)
|
.publisher(for: .valueChanged)
|
||||||
.sink { [weak self] sender in
|
.sink { [weak self] sender in
|
||||||
let selectors = self?.model.selectors.compactMap { existing 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 {
|
return existing.copyWith {
|
||||||
$0.strikethrough = sender.isOn
|
$0.strikethrough = sender.isOn
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user