updated to copyWith

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-08-22 17:49:44 -05:00
parent 632f7498bc
commit 304023381c
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class RadioButtonGroupBase<RadioButtonGroupModelType: RadioButtonGroupMod
newHasError = false newHasError = false
} }
let selectors = model.selectors.compactMap { existing in let selectors = model.selectors.compactMap { existing in
return existing.with { return existing.copyWith {
$0.hasError = newHasError $0.hasError = newHasError
} }
} }

View File

@ -44,7 +44,7 @@ open class SelectorGroupBase<SelectorType, SelectorGroupType: SelectorGroupModel
private func updateSelectors(){ private func updateSelectors(){
let selectors = model.selectors.compactMap { existing in let selectors = model.selectors.compactMap { existing in
return existing.with { return existing.copyWith {
$0.disabled = disabled $0.disabled = disabled
$0.surface = surface $0.surface = surface
} }