openalloc / SwiftTabler

A multi-platform SwiftUI component for tabular data
Apache License 2.0
136 stars 14 forks source link

BIG CHANGE moving header/row wrapper back outside of component #17

Closed reedes closed 2 years ago

reedes commented 2 years ago

A couple reasons:

1- No longer ties header/row wrapping to LazyVGrid. You can use HStack or other wrapper for fields in your row.

2- No more @ViewBuilder wrappers needed in declaring header/rows.

3- Capability to attach row-level modifiers to your header/row. (e.g. context menu, etc.)

README example will be reflected to show this change.

Note that the experimental Grid-based tables will continue to be unwrapped and require the @ViewBuilder wrapper. More on that as the design settles.