LazyVStack with variable height content flitter when scroll to top.

Hi,

I want to create a masonry layout(Pinterest-like Grid) with Lazy Loading in SwiftUI.

But when I start scrolling to the top, the stack is flittering.

My code is here.

ScrollView {
    LazyVStack(spacing: 8) {
        ForEach(urls, id: \.self) { url in
            KFImage(url)
                .resizable()
                .scaledToFill()
        }
    }
}

How to solve the flittering?

Thanks for your support.

LazyVStack with variable height content flitter when scroll to top.
 
 
Q