How to create grid in SwiftUI

后端 未结 4 1802
孤街浪徒
孤街浪徒 2020-12-21 09:35

I know that we can create a List in vertical SwiftUI like this,

struct ContentView : View {
    var body: some View {
        NavigationView {
            Li         


        
4条回答
  •  余生分开走
    2020-12-21 09:45

    Checkout ZStack based example here

    Grid(0...100) { _ in
        Rectangle()
            .foregroundColor(.blue)
    }
    

提交回复
热议问题