archive
.bsteph.com
🌱
Conditional view modifiers
Source
var
body:
some
view {
myView
.
padding
(X
?
8
:
0
)
.
background
(Y
?
Color.blue
:
Color.clear)
}
swiftui