Changelog History
Page 2
-
v6.3.0 Changes
June 09, 2018โ Added
- Anomaly detecting system for various errors in
DTTableViewManager
. Read more about it in Anomaly Handler Readme section. Anomaly handler system requires Swift 4.1 and higher. - ๐ Support for Swift 4.2 in Xcode 10 beta 1.
๐ Changed
- Calling
startManaging(withDelegate:_)
method is no longer required.
๐ฅ Breaking
- ๐
viewFactoryErrorHandler
deprecated property onDTTableViewManager
was removed. All previously reported errors and warnings are now a part of anomaly detecting system.
- Anomaly detecting system for various errors in
-
v6.2.0 Changes
May 03, 2018๐ฅ Breaking
editingStyle(for:_,_:)
method was replaced witheditingStyle(forItem:_,:_)
method, that accepts model and indexPath closure, without cell. Reason for that is thatUITableView
may call this method when cell is not actually on screen, in which case this event would not fire, and current editingStyle of the cell would be lost.
-
v6.1.1 Changes
April 02, 2018- โก๏ธ Updates for Xcode 9.3 and Swift 4.1
-
v6.1.0 Changes
January 19, 20182017-12-04
-
v6.1.0-beta.1 Changes
December 04, 2017โก๏ธ 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.
-
v6.0.0 Changes
November 01, 2017- โก๏ธ Updated to Xcode 9.1 / Swift 4.0.2
-
v6.0.0-beta.3 Changes
October 05, 2017- ๐ Makes
DTTableViewManager
property weak instead of unowned to prevent iOS 10-specific memory issues/crashes.
- ๐ Makes
-
v6.0.0-beta.2 Changes
- ๐ Build with Xcode 9.0 final release.
- ๐ Fixed partial-availability warnings.
-
v6.0.0-beta.1 Changes
๐ This is a major release with some breaking changes, please read DTTableViewManager 6.0 Migration Guide
- โ Added
updateVisibleCells(_:) method
, that allows updating cell data for visible cells with callback on each cell. This is more efficient than callingreloadData
when number of elements inUITableView
does not change, and only contents of items change. - ๐ง Implement
configureEvents(for:_:)
method, that allows batching in several cell events to avoid using T.ModelType for events, that do not have cell created. - โ Added event for
UITableViewDelegate
tableView(_:targetIndexPathForMoveFromRowAt:toProposedIndexPath:
- โ Added events for focus engine on iOS 9
- Added events for iOS 11
UITableViewDelegate
methods:tableView(_:leadingSwipeActionsConfigurationForRowAt:
,tableView(_:trailingSwipeActionsConfigurationForRowAt:
,tableView(_:shouldSpringLoadRowAt:withContext:
- ๐จ
UITableViewDelegate
andUITableViewDatasource
implementations have been refactored fromDTTableViewManager
toDTTableViewDelegate
andDTTableViewDataSource
classes. DTTableViewManager
now allows registering mappings for specific sections, or mappings with any custom condition.- Added
move(_:_:)
method to allow setting up events, reacting totableView:moveRowAt:to:
method.
- โ Added
-
v5.3.0 Changes
๐ Dependency changelog -> DTModelStorage 5.0.0 and higher
- ๐ Use new events system from DTModelStorage, that allows events to be properly called for cells, that are created using
ViewModelMappingCustomizing
protocol.
- ๐ Use new events system from DTModelStorage, that allows events to be properly called for cells, that are created using