fixed code issue

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-09-14 16:17:39 -05:00
parent 72f2b09255
commit 308e8c9738

View File

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