Thanks for asking the question! There is a horizontal
property on the ForEach
view itself that can be set in the initializer:
ForEach([8,7,6,5,4,3,2,1], horizontal: true) { file in
// ...
}
It would be possible to pass the direction of the parent stack to children ForEach
views - as this is SwiftUI's behavior, I'll look into this, but certainly keep the property to set it explicitly on the ForEach
.