Releases: DenTelezhkin/DTModelStorage
Releases · DenTelezhkin/DTModelStorage
2.6.1
Fixed
- Now properly handles case, when
deleteSections
method was called with index, that is not present inMemoryStorage
orRealmStorage
Added
setSectionWithResults(_:forSectionIndex:)
forRealmStorage
Updated
Realm
dependency to1.0.0
2.6.0
Changed
- Support for fine-grained notifications in Realm
- Update to Realm 0.103.1 and higher.
Fixed
- Fixed DenTelezhkin/DTTableViewManager#34, thanks @orkenstein, @andrewSvsg
2.5.1
Changed
- Realm dependency updated to 0.102 version.
2.5.0
Breaking
- Update to Swift 2.2. This release is not backwards compatible with Swift 2.1.
Added
insertItems(_:toIndexPaths:)
method, that mirrors UITableViewinsertRowsAtIndexPaths(_:withRowAnimation:)
and UICollectionViewinsertItemsAtIndexPaths(_:)
methodtotalNumberOfItems
computed property inMemoryStorage
, that allows getting current total number of items across all storage.
Changed
- Require Only-App-Extension-Safe API is set to YES in framework targets.
2.4.3
2.4.2
Changed
replaceItem(_:replacingItem:)
method no longer requires second argument to be Equatable.
2.4.0
Added
RealmStorage
andRealmSection
class, that allows using Realm database results as a storage forDTTableView
andDTCollectionViewManager
.- Ability to specify xibName on
ViewModelMapping
class.
Removed
Removed API, deprecated in previous releases. All removed API calls are superseded by following replacement methods.
removeAllTableItems
,removeAllCollectionItems
->removeAllItems
moveCollectionItemAtIndexPath:toIndexPath:
,moveTableItemAtIndexPath:toIndexPath:
->moveItemAtIndexPath:toIndexPath:
moveCollectionViewSection:toSection
,moveTableViewSection:toSection
->moveSection:toSection
objectForCellClass
->itemForCellClass
objectForHeaderClass
->itemForHeaderClass
objectForFooterClass
->itemForFooterClass
objectAtIndexPath
->itemAtIndexPath
SectionModel
objects
andnumberOfObjects
->items
,numberOfItems
2.3.0
Added
ViewModelMapping
class, that allows to store and retrieve mappings using type checks instead of runtime introspectionUIReaction
class, that will allowDTTableViewManager
andDTCollectionViewManager
to react to selection and configuration events. This class supersedesTableViewReaction
andCollectionViewReaction
internal classes, that previously served the same purpose.DTViewModelMappingCustomizable
protocol to allow customization ofViewModelMapping
.
Removed
RuntimeHelper
model introspection methods
2.2.0
Added
performUpdates
method to perform batch updates on Storage classes.- Support for Apple TV platform (tvOS)
Fixed
- Handle NSFetchedResultsController update, that may be called in a form of .Move type(iOS 9).
2.1.3
Fixed
insertItem(_:atIndexPath:)
method now properly accepts zero index path in empty section