DTCollectionViewManager v5.0.0-beta.1 Release Notes
-
๐ This is a major release, written in Swift 3. Read Migration guide with descriptions of all features and changes.
๐ Dependency changelog -> DTModelStorage 3.0.0 and higher
โ Added
- ๐ New events system that covers almost all available
UICollectionViewDelegate
,UICollectionViewDataSource
andUICollectionViewDelegateFlowLayout
delegate methods. - ๐ New class -
CollectionViewUpdater
, that is calling all animation methods forUICollectionView
when required by underlying storage. - โก๏ธ
updateCellClosure
method onDTCollectionViewManager
, that manually updates visible cell instead of callingcollectionView.reloadItemsAt(_:)
method. - โก๏ธ
coreDataUpdater
property onDTCollectionViewManager
, that createsCollectionViewUpdater
object, that follows Apple's guide for updatingUICollectionView
fromNSFetchedResultsControllerDelegate
events. isManagingCollectionView
property onDTCollectionViewManager
.unregisterCellClass(_:)
,unregisterHeaderClass(_:)
,unregisterFooterClass(_:)
,unregisterSupplementaryClass(_:forKind:)
methods to unregister mappings fromDTCollectionViewManager
andUICollectionView
๐ Changed
- Swift 3 API Design guidelines have been applied to all public API.
- Event system is migrated to new
EventReaction
class fromDTModelStorage
- Now all view registration methods use
NSBundle(forClass:)
constructor, instead of falling back onDTCollectionViewManager
viewBundle
property. This allows having cells from separate bundles or frameworks to be used with singleDTCollectionViewManager
instance.
Removals
viewBundle
property onDTCollectionViewManager
- ๐
itemForVisibleCell
,itemForCellClass:atIndexPath:
,itemForHeaderClass:atSectionIndex:
,itemForFooterClass:atSectionIndex:
were removed - they were not particularly useful and can be replaced with much shorter Swift conditional typecasts. - All events methods with method pointer semantics. Please use block based methods instead.
registerCellClass:whenSelected
method, that was tightly coupling something that did not need coupling.
- ๐ New events system that covers almost all available