Yes, we need Apple to fix this annoying issue in Swift 3.0.
In the meantime, I am using this that seems to work in iOS14.4 and XC 12.4:
VStack {
ScrollView {
ForEach()
}
}
Yes, that is right, the ScrollView inside the VStack, also works with LazyVStack, which seems just the opposite than you would think.
The use case here is that the VStack has a small frame and not having the ScrollView and a large number of items will override the frame and cause the VStack to grow beyond the frame, which seems very wrong... another battle for another day.
Hope this helps your frustrations.
Cheers, and get ready for "one last thing"...
Felipe
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: