updated to copyWith
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
632f7498bc
commit
304023381c
@ -28,7 +28,7 @@ public class RadioButtonGroupBase<RadioButtonGroupModelType: RadioButtonGroupMod
|
||||
newHasError = false
|
||||
}
|
||||
let selectors = model.selectors.compactMap { existing in
|
||||
return existing.with {
|
||||
return existing.copyWith {
|
||||
$0.hasError = newHasError
|
||||
}
|
||||
}
|
||||
|
||||
@ -44,7 +44,7 @@ open class SelectorGroupBase<SelectorType, SelectorGroupType: SelectorGroupModel
|
||||
|
||||
private func updateSelectors(){
|
||||
let selectors = model.selectors.compactMap { existing in
|
||||
return existing.with {
|
||||
return existing.copyWith {
|
||||
$0.disabled = disabled
|
||||
$0.surface = surface
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user