VStack
or HStack
.Call this just like a normal stack, except pass a Bool
to let it know how to behave. Set the ManualStack's isVertical
to true
for a VStack
and false
for and HStack
.
Example:
ManualStack(isVertical: true){
ForEach(allInTheRainbowsColors, id:\.self){ color in
Rectangle()
.frame(width: 200.0, height:50.0)
.foregroundColor(color)
}
}
I very much stole and butchered this from Hacking With Swift
link |
Stars: 0 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics