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: README.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,21 +195,31 @@ Since there are several style syntaxes for passing group of sections, please che
195
195
```swift
196
196
@IBOutletvar tableView: UITableView!
197
197
198
-
lazyvar renderer =Renderer(
199
-
target: tableView,
198
+
let renderer =Renderer(
200
199
adapter: UITableViewAdapter(),
201
200
updater: UITableViewUpdater()
202
201
)
202
+
203
+
overridefuncviewDidAppear(_animated: Bool) {
204
+
super.viewDidAppear(animated)
205
+
206
+
renderer.target= tableView
207
+
}
203
208
```
204
209
205
210
```swift
206
211
@IBOutletvar collectionView: UICollectionView!
207
212
208
-
lazyvar renderer =Renderer(
209
-
target: collectionView,
213
+
let renderer =Renderer(
210
214
adapter: UICollectionViewFlowLayoutAdapter(),
211
215
updater: UICollectionViewUpdater()
212
216
)
217
+
218
+
overridefuncviewDidAppear(_animated: Bool) {
219
+
super.viewDidAppear(animated)
220
+
221
+
renderer.target= collectionView
222
+
}
213
223
```
214
224
215
225
```swift
@@ -397,6 +407,10 @@ Below are some of the default provided settings of `updater`.
397
407
Indicating whether enables animation for diffing updates, setting `false` will perform it using `UIView.performWithoutAnimation`.
398
408
Default is `true`.
399
409
410
+
-**isAnimationEnabledWhileScrolling**
411
+
Indicating whether enables animation for diffing updates while target is scrolling, setting `false` will perform it using `UIView.performWithoutAnimation`.
412
+
Default is `true`.
413
+
400
414
-**animatableChangeCount**
401
415
The max number of changes to perform diffing updates. It falls back to `reloadData` if it exceeded.
0 commit comments