Skip to content

peterkos/TableGrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TableGrid

A custom grid-based layout to mimic Table in SwiftUI.

Goals

  • Provide more customization options vs. SwiftUI's macOS Table API
  • Opaque styling, vs. Grid, which exposes individual views
    • (e.g., can't put a .background() on a GridRow without some modifier tricks)

Example

// This is a work in progress!
TableGrid {
    TableGridHeader {
        Text("hello")
        Text("there")
    }
    TableGridRow {
        Text("one.one")
        Text("one.two")
    }
    TableGridRow {
        Text("two.one")
        Text("two.twoooooo")
    }
}

About

A custom grid-based layout to mimic Table in SwiftUI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages