Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

281 Commits

Repository files navigation

DiffableKit

Declarative wrapper around UITableViewDiffableDataSource and UICollectionViewDiffableDataSource. Describe sections and items, call set() — diffing, animations, and cell updates are handled automatically.

Installation

In Xcode: File → Add Package Dependencies → paste URL:

https://github.com/sparrowcode/DiffableKit

Usage

classSettingsController:DiffableTableController{overridefunc viewDidLoad(){
super.viewDidLoad()configureDiffable(
sections:[DiffableSection(
id:"general",
header:DiffableTextHeaderFooter(text:"General"),
items:[DiffableTableRow(text:"Theme", detail:"System", accessoryType:.disclosureIndicator)])],
cellProviders:DiffableTableDataSource.CellProvider.default
)}}

About

Declarative wrapper for UIKit Diffable Data Source. Describe content, call set() — diffing and animations handled automatically.

Topics

Resources

Stars

134 stars

Watchers

4 watching

Forks

Releases

Contributors

Languages