Changelog History
Page 2
-
v7.0.0-beta.2 Changes
September 06, 2019- โ Added support for Xcode versions, that are older than Xcode 11.
-
v7.0.0-beta.1 Changes
August 20, 2019๐ This is a major release with some breaking changes, please read DTCollectionViewManager 7.0 Migration Guide
๐ Changed
- DTCollectionViewManager now requires to be built with Swift 4.2 and later.
- Anomaly event verification now allows subclasses to prevent false-positives.
- โก๏ธ
animateChangesOffScreen
property onCollectionViewUpdater
that allows to turn off animated updates forUICollectionView
when it is not on screen.
โ Added
- ๐ง
configureDiffableDataSource(modelProvider:)
method to enableUICollectionViewDiffableDataSource
withDTCollectionViewManager
. DTCollectionViewManager.supplementaryStorage
getter, that conditionally casts current storage toSupplementaryStorage
protocol.- 0๏ธโฃ Ability to customize bundle, from which xib files are loaded from by setting
bundle
property onViewModelMapping
inmappingBlock
. As before,bundle
defaults toBundle(for: ViewClass.self)
.
๐ New method wrappers for iOS 13 API
shouldBeginMultipleSelectionInteraction
didBeginMultipleSelectionInteraction
didEndMultipleSelectionInteraction
contextMenuConfiguration(for:)
previewForHighlightingContextMenu
previewForDismissingContextMenu
willCommitMenuWithAnimator
โ Removed
- ๐ Usage of previously deprecated and now removed from
DTModelStorage
ViewModelMappingCustomizing
protocol.
๐ฅ Breaking
DTModelStorage header, footer and supplementary model handling has been largely restructured to be a single closure-based API. Read more about changes in DTModelStorage changelog. As a result of those changes, several breaking changes in DTCollectionViewManager include:
- ๐
SectionModel
extension withcollectionHeaderModel
andcollectionFooterModel
properties has been removed. - 0๏ธโฃ Because headers/footers are now a closure based API,
setSectionHeaderModels
andsetSectionFooterModels
do not create sections by default, and do not call collectionView.reloadData.
Other breaking changes:
- โก๏ธ
collectionViewUpdater
will contain nil ifDTCollectionViewManager
is configured to work withUICollectionViewDiffableDataSource
. - ๐
DTCollectionViewNonOptionalManageable
protocol was removed and replaced bycollectionView
property onDTCollectionViewManageable
protocol. One ofcollectionView
/optionalCollectionView
properties must be implemented byDTCollectionViewManageable
instance to work withDTCollectionViewManager
. collectionView
property inDTCollectionViewManageable
protocol is nowImplicitlyUnwrappedOptional
instead ofOptional
. This change is done to unify API withUICollectionViewController
change andDTTableViewManager
API for consistency.
โ WARNING Because of default implementations for new property this will not show as a compile error, instead crashing in runtime. Please make sure to update all definitions of
var collectionView: UICollectionView?
to
var collectionView: UICollectionView!
.If you need optional collection view, use
optionalCollectionView
property instead.๐ Deprecated
๐ Following methods have been deprecated due to their delegate methods being deprecated in iOS 13:
shouldShowMenuForItemAt
canPerformAction
performAction
-
v6.6.0 Changes
June 17, 2019- โ Added support for Swift Package Manager in Xcode 11
-
v6.5.0 Changes
April 07, 2019โ Added
- Convenience constructor for
DTCollectionViewManager
object:init(storage:)
that allows to create it's instance without initializingMemoryStorage
. - ๐ง Static variable
defaultStorage
onDTCollectionViewManager
that allows to configure whichStorage
class is used by default. - ๐ Documentation
- ๐ Support for Xcode 10.2 and Swift 5
โ Removed
- ๐ Support for Xcode 9 and Swift 3
- Convenience constructor for
-
v6.4.2 Changes
February 05, 2019move(:_,:_)
method was deprecated and no longer works due to a logic bug, that can prevent this method from being called if sourceIndexPath is off screen when this event was called byUICollectionView
. Please use new methodmoveItemAtTo(:_)
to subscribe to move events in the datasource.
-
v6.4.1 Changes
October 30, 2018- ๐ Fix infinite recursion bug with UICollectionView.canFocusItemAt(:) method(thanks, @skydivedan!)
-
v6.4.0 Changes
September 25, 2018- ๐ Support for Xcode 10 and Swift 4.2
-
v6.3.0 Changes
June 09, 2018โ Added
- Anomaly-detecting and reporting system for
DTCollectionViewManager
. 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
property onDTCollectionViewManager
was removed, all supported errors and warnings are now a part of anomaly reporting system
- Anomaly-detecting and reporting system for
-
v6.1.1
April 02, 2018 -
v6.1.0