Skip to content

Commit 9cb57b3

Browse files
ivanvorobeiclaude
andcommitted
Add README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ae12169 commit 9cb57b3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# DiffableKit
2+
3+
Wrapper around `UITableViewDiffableDataSource` and `UICollectionViewDiffableDataSource`. Removes boilerplate — describe sections and rows as models, get animated updates out of the box.
4+
5+
Built-in row types for settings screens. Cell provider, header/footer provider, delegate with actions — all wired up declaratively.
6+
7+
```swift
8+
class SettingsController: DiffableTableController {
9+
10+
override func viewDidLoad() {
11+
super.viewDidLoad()
12+
configureDiffable(
13+
sections: [
14+
DiffableSection(
15+
id: "general",
16+
header: DiffableTextHeaderFooter(text: "General"),
17+
items: [
18+
DiffableTableRow(text: "Theme", detail: "System", accessoryType: .disclosureIndicator)
19+
]
20+
)
21+
],
22+
cellProviders: DiffableTableDataSource.CellProvider.default
23+
)
24+
}
25+
}
26+
```

0 commit comments

Comments
 (0)