apptekstudios / ASCollectionView

A SwiftUI collection view with support for custom layouts, preloading, and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can data binding be used for GroupLarge

pkasson opened this issue · comments

The GroupModel is the state for the collection view items, but it is not annotated as such.

How can the GroupLarge and GroupSmall support SwiftUI data binding for the title and contentCount attributes.

These are just normal SwiftUI View structs used for the demo project - there's nothing specific about them relevant to ASCollectionView. Check out the WWDC session on Data flow for more info re: properties vs bindings :)