SwiftTabler icon indicating copy to clipboard operation
SwiftTabler copied to clipboard

Support alternating row background

Open reedes opened this issue 3 years ago • 1 comments

Much like Apple's Table component supports them.

reedes avatar Mar 06 '22 20:03 reedes

In Monterey and onward, Lists support this style with the following modifier:

TablerList(listConfig,
                           header: header,
                           row: row,
                           results: fruits)
    .listStyle(.inset(alternatesRowBackgrounds: true))

It'd be nice to support a similar effect for Stack and Grid based tables.

reedes avatar Mar 08 '22 04:03 reedes