๐Ÿ…ฟ๏ธ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