You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,10 @@ Here you find all which using in project:
23
23
- // MARK: - Init
24
24
- // MARK: - Lifecycle
25
25
- // MARK: - Layout
26
-
- // MARK: - Helpers
26
+
- // MARK: - Public
27
+
- // MARK: - Private
28
+
- // MARK: - Internal
29
+
- // MARK: - Models
30
+
- // MARK: - Ovveride
27
31
28
32
If you can't find valid, add new to codestyle agreements please. Other can be use if class is large and need struct it even without adding to codestyle agreements.
footer:SPDiffableTextHeaderFooter(text:"Example of new Side Bar."),
101
101
items:[
102
102
SPDiffableTableRow(text:"Present Side Bar", accessoryType:.disclosureIndicator, selectionStyle:.default, action:{[weak self] model, indexPath in
@@ -112,7 +112,7 @@ class RootController: DiffableTableController {
112
112
}
113
113
114
114
letcheckmarkSections=SPDiffableSection(
115
-
identifier:Section.checkmark.identifier,
115
+
id:Section.checkmark.id,
116
116
footer:SPDiffableTextHeaderFooter(text:"Example how usage search by models and change checkmark without reload table."),
117
117
items:[
118
118
SPDiffableTableRow(text:"Chekmarks", accessoryType:.disclosureIndicator, selectionStyle:.default, action:{[weak self] model, indexPath in
@@ -124,7 +124,7 @@ class RootController: DiffableTableController {
124
124
content.append(checkmarkSections)
125
125
126
126
letcellProviderSection=SPDiffableSection(
127
-
identifier:Section.customCellProvider.identifier,
127
+
id:Section.customCellProvider.id,
128
128
footer:SPDiffableTextHeaderFooter(text:"Also you can add more providers for specific controller, and use default and custom specially for some contorllers."),
129
129
items:[
130
130
SPDiffableTableRow(text:"Custom Cell Provider", accessoryType:.disclosureIndicator, selectionStyle:.default, action:{[weak self] model, indexPath in
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.
[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate using CocoaPods, specify it in your `Podfile`:
41
+
[CocoaPods](https://cocoapods.org) is a dependency manager. For usage and installation instructions, visit their website. To integrate using CocoaPods, specify it in your `Podfile`:
61
42
62
43
```ruby
63
44
pod 'SPDiffable'
@@ -115,7 +96,7 @@ class DiffableTableController: SPDiffableTableController {
115
96
}
116
97
```
117
98
118
-
Now ready model and convert it to views. Time to add content. Read next section.
99
+
Now ready model and convert it to views. Time to add content.
@@ -312,41 +293,14 @@ Provided only models, becouse for most items using list registration and no need
312
293
In project you can find class `SPDiffableWrapperItem`. Using it, when you don't want create custom item model for you diffable struct. You can pass any your model and uwrap it later in cell provider.
313
294
314
295
```swift
315
-
let item =SPDiffableWrapperItem(identifier: "uniq-identifier", model: LocationRowModel(city: "Minsk"))
296
+
let item =SPDiffableWrapperItem(id: "uniq-identifier", model: LocationRowModel(city: "Minsk"))
316
297
```
317
298
318
-
## Сontribution
319
-
320
-
My English is very bad. You can see this once you read the documentation. I would really like to have clean and nice documentation. If you see gramatical errors and can help fix the Readme, please contact me hello@ivanvorobei.by or make a Pull Request. Thank you in advance!
321
-
322
-
## Other Projects
323
-
324
-
I love being helpful. Here I have provided a list of libraries that I keep up to date. For see `video previews` of libraries without install open [opensource.ivanvorobei.by](https://opensource.ivanvorobei.by) website.<br>
325
-
I have libraries with native interface and managing permissions. Also available pack of useful extensions for boost your development process.
0 commit comments