Contents

edonv/collectionview

`CollectionView` is a SwiftUI wrapper of [`UICollectionView`](https://developer.apple.com/documentation/uikit/uicollectionview).

Usage

  • Make sure to use .ignoresSafeArea() if it's meant to be full-screen.

To-Do's

  • [x] Implement UICellConfigurationState.
  • [ ] Add support for NSCollectionView.
  • [ ] Make sure CollectionView isn't updating itself more than necessary? or is it not because it's a RepresentableView?
  • [ ] Condense initializers somehow...
  • [ ] Add support for section snapshots.

- [ ] Add support for expandable sections.

  • [ ] Add support for section headers/footers.
  • [ ] Refactor cellRegistrationHandler out of primary initializers and replace with a UICollectionViewDiffableDataSource<Section, Item>.CellProvider closure to allow for more complicated configurations.
  • [ ] Finish documenting view modifiers.
  • [ ] Work on more concrete example for README/DocC articles.

Package Metadata

Repository: edonv/collectionview

Default branch: main

README: README.md