Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

UICollectionView wrapper example for SwiftUI using Combine, UICollectionViewCompositionalLayout and UICollectionViewDiffableDataSource

License

Notifications You must be signed in to change notification settings

shabib87/SwiftUICollectionView

Repository files navigation

SwiftUI CollectionView

Swift 5.2

Example project in support for blog post: https://www.codewithshabib.com/how-to-create-a-swiftui-collectionview/

Key takeouts:

  • SwiftUI
  • Combine
  • iOS 13.0
  • UICollectionViewCompositionalLayout
  • UICollectionViewDiffableDataSource
  • Clean Architecture

Features:

  • Pull to refresh
  • Pagination support

I'm using SwiftLint and SwiftFormat to ensure coding style and format. Also using Komondor to automate it with git precommit hook.

Installation:

  • $ swift build
  • $ swift run komondor install
Demo
output

Releases

No releases published

Packages

No packages published

Languages