diff --git a/VDS/Components/Buttons/ButtonGroup/ButtonGroup.swift b/VDS/Components/Buttons/ButtonGroup/ButtonGroup.swift index 4a563f63..a2ba0498 100644 --- a/VDS/Components/Buttons/ButtonGroup/ButtonGroup.swift +++ b/VDS/Components/Buttons/ButtonGroup/ButtonGroup.swift @@ -96,10 +96,7 @@ open class ButtonGroup: View { /// Current Surface and this is used to pass down to child objects that implement Surfacable override open var surface: Surface { didSet { - buttons.forEach { button in - var b = button - b.surface = surface - } + buttons.forEach { $0.surface = surface } } }