A SwiftUI collection view with support for custom layouts, preloading, and more.
canExceedCollectionSize
to SelfSizingConfig (instead of environment)shrinkToSize
support, no longer requiring a bindingselection
API to be on a per-section basis. Refer to the Waterfall demo page to see an example of how to track this across many sections.shouldAllowSelection
and shouldAllowDeselection
→ fix #115This version changes some cell lifecycle code under the hood to improve performance. It is a known issue that some environment objects are not correctly passed down to the cells, this is a SwiftUI bug; The workaround is to pass the environment objects directly when defining the contents of your section.
cacheCells
modifier to allow for marking sections that should be cached even when moving off screen (eg. for nested collectionViews)onReachedBoundary
closureonReachedBoundary
closure