Use AnyLayout To Choose a Layout At Runtime
Daily Coding Tip 115

I originally started this by creating an enum with vertical and horizontal cases, but Apple has already done that for me by creating Axis.
Instead of creating a similar enum with the same cases, I’m simply going to extend the existing type, adding a computed property that returns AnyLayout(VStack()) when the enum va…


