DTTableViewManager v6.1.0-beta.1 Release Notes
Release Date: 2017-12-04 // over 6 years ago-
⚡️ Implemented new system for deferring datasource updates until
performBatchUpdates
block. This system is intended to fight crash, that might happen whenperformBatchUpdates
method is called afterUITableView.reloadData
method(for example after callingmemoryStorage.setItems
, and then immediatelymemoryStorage.addItems
). This issue is detailed in DenTelezhkin/DTCollectionViewManager#27 and DenTelezhkin/DTCollectionViewManager#23. This crash can also happen, if iOS 11 APIUITableView.performBatchUpdates
is used. This system is turned on by default. If, for some reason, you want to disable it and have old behavior, call:manager.memoryStorage.defersDatasourceUpdates = false
⚡️
TableViewUpdater
now uses iOS 11performBatchUpdates
API, if this API is available. This API will work properly onMemoryStorage
only ifdefersDatasourceUpdates
is set totrue
- which is default. However, if for some reason you need to use legacy methodsbeginUpdates
,endUpdates
, you can enable them like so:manager.tableViewUpdater?.usesLegacyTableViewUpdateMethods = true
0️⃣ Please note, though, that new default behavior is recommended, because it is more stable and works the same on both UITableView and UICollectionView.
- ⚡️
tableViewUpdater
property onDTTableViewManager
is now ofTableViewUpdater
type instead of opaqueStorageUpdating
type. This should ease use of this object and prevent type unneccessary type casts.