# IndexedGridLayout

[SwiftUI](../../../../..) ⟩ [Layout](../../..) ⟩ [Grids](../..) ⟩ [examples](..) ⟩ [ItemsView]() ⟩&#x20;

{% tabs %}
{% tab title="🅿️ IndexedGridLayout" %}
```swift
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
}
```
{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}
