spacenation / swiftui-grid

:rocket: SwiftUI Grid layout with custom styles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grid areas

ay42 opened this issue · comments

Grid areas is definitely a big feature and it's not going to be included in 1.0.0.
However I would like to start this issue and discussion about it.
Please let me know if you have any thoughts on this and how this can be implemented

CSS Grid area

Our goal is to have something similar to this.

Grid {
    Rectangle()
        .gridArea(column: 1, row: 1)
    Text("...")
        .gridArea(column: 2, row: .span(3))
}
.gridStyle(
    ModularGridStyle(columns: 3, rows: 3)
)