How to make ScrollView refreshable swiftui?

Viewed 913

With Swiftui 3 Apple added modifier refreshable. I can use it with List. But if I have scrollview it doesn't work. Any ideas?

ScrollView(.vertical) {
        LazyVGrid(columns: columns, spacing: gridSpacing) {
            ForEach($products, id: \.self) { product in
                CardView()
            }
        }
    }.refreshable {
        
    }
0 Answers
Related