Skip to content

Commit 22dd80a

Browse files
committed
README update
1 parent 2f37841 commit 22dd80a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ class ViewController: FHDiffableTableViewController<Section, Item> {
7878
```
7979
>This is the most simple implementation of a FHDiffableTableViewController.
8080
81+
<br>
82+
83+
The cell selection can be implemented like that:
84+
85+
```swift
86+
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
87+
let item = dataSource.itemIdentifier(for: indexPath)
88+
/*do your actions with the selected item*/
89+
}
90+
```
91+
8192
### Customize Cells
8293

8394
In order to use custom cells, the `cellProvider` property must be overritten. This works exactly the same for table view and collection view.

0 commit comments

Comments
 (0)