Convert the Regular VStacks / HStacks into Lazy Versions
saiankit opened this issue · 1 comments
saiankit commented
By default, SwiftUI’s VStack and HStack load all their contents upfront, which is likely to be slow if you use them inside a scroll view.
If you want to load content lazily – i.e., only when it scrolls into view, you should use LazyVStack and LazyHStack as appropriate.
saiankit commented
Lazy VStack and Lazy HStack are only available in iOS 14+.
Added if(ios14+) LazyVStack and LazyHStack for the app