Build a scrollable photo grid or content feed in an iOS app with automatic animated updates when data changes.
Create a multi-section scrollable view where each section has its own data, layout, and cell sizing rules.
Replace verbose UICollectionView delegate and data source boilerplate with a three-object Provider setup in Swift.
Implement a waterfall layout or horizontal scrolling row with a few lines of Swift using built-in layout objects.
Install via CocoaPods or Carthage, targets iOS 8 and Swift 3 or later, so Xcode version compatibility is worth checking.
CollectionKit is a Swift library for iOS developers who build scrollable lists and grids of content inside their apps. iOS has a built-in component for this called UICollectionView, but developers often find it verbose and difficult to work with. CollectionKit offers a replacement that is designed to be simpler to set up, more composable, and better performing. The core idea is a Provider pattern. Instead of implementing several delegate and data source methods scattered across a class, you describe your collection by assembling three objects: a data source that holds your items, a view source that describes how each item should appear on screen, and a size source that tells the layout how large each cell should be. You hand this bundle to the CollectionKit view, and it handles the rest. When your data changes, the framework automatically figures out what was added, removed, or moved, and updates only those parts of the screen. Layout is handled by separate Layout objects that you can swap in or modify. The built-in options include a flow layout (items arranged left to right then wrapping to the next line), a waterfall layout (variable-height columns like a photo grid), and a row layout. Layouts can be transposed from vertical to horizontal or padded with insets by chaining modifier calls. One of the more practical features is composition. You can take multiple independent providers, each with its own data, layout, and sizing rules, and combine them into a single scrollable view with separate sections. Updating one section does not require touching the others. The framework batches rapid data changes together so the screen only redraws once per layout cycle, which keeps scrolling smooth. CollectionKit is installed through CocoaPods or Carthage. It requires iOS 8 and Swift 3 or later. The README is written for iOS developers and assumes familiarity with Swift and Xcode.
← soysaucelab on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.