|
2 | 2 |
|
3 | 3 | Apple's diffable API requerid models for each object type. If you want use it in many place, you pass many time to implemenet and get over duplicates codes. This project help you do it elegant with shared models and special cell providers for one-usage models.
|
4 | 4 |
|
5 |
| -If you like the project, do not forget to `put star ★` and follow me on GitHub: |
| 5 | +If you like the project, don't forget to `put star ★` and follow me on GitHub: |
6 | 6 |
|
7 | 7 | [](https://github.com/ivanvorobei)
|
8 | 8 |
|
@@ -92,7 +92,7 @@ override func viewDidLoad() {
|
92 | 92 | super.viewDidLoad()
|
93 | 93 |
|
94 | 94 | // Register cell for usage it in table view
|
95 |
| - tableView?.register(NativeTableViewCell.self, forCellReuseIdentifier: NativeTableViewCell.identifier) |
| 95 | + tableView.register(NativeTableViewCell.self, forCellReuseIdentifier: NativeTableViewCell.identifier) |
96 | 96 |
|
97 | 97 | // Cell provider for `TableRowMode`
|
98 | 98 | let cellProvider: SPDiffableTableCellProvider = { (tableView, indexPath, model) -> UITableViewCell? in
|
@@ -132,7 +132,7 @@ let section = SPDiffableSection(
|
132 | 132 | guard let self = self else { return }
|
133 | 133 | self.tableView.deselectRow(at: indexPath, animated: true)
|
134 | 134 | print("Tapped")
|
135 |
| - }), |
| 135 | + }) |
136 | 136 | ]
|
137 | 137 | )
|
138 | 138 |
|
@@ -189,7 +189,7 @@ Now you can implemented requerid methods, for example title of header:
|
189 | 189 |
|
190 | 190 | ```swift
|
191 | 191 | func diffableTableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
|
192 |
| - return "Ovverided in of diffable mediator" |
| 192 | + return "Overridden in of diffable mediator" |
193 | 193 | }
|
194 | 194 | ```
|
195 | 195 |
|
|
0 commit comments