🅿️IndexedGridLayout
SwiftUI ⟩ Layout ⟩ Grids ⟩ examples ⟩ ItemsView ⟩
import SwiftUI
// 🅿️ IndexedGridLayout
protocol IndexedGridLayout {
var rows: Int { get } // # of rows
var cols: Int { get } // # of cols
var cellSize: CGSize { get } // item view size
func cellCenter(at index: Int) -> CGPoint // item view's center
}
Last updated
Was this helpful?