Releases: DenTelezhkin/DTModelStorage
Releases · DenTelezhkin/DTModelStorage
5.1.0
- Swift 3.2 support(Xcode 9 beta 1).
RealmStorage
now acceptsRealmCollection
objects into section, thus allowingList
andLinkingObjects
to be used(previously onlyResults
objects could be used in section).
5.0.1
5.0.0
- Reworked
EventReaction
class to useViewModelMapping
to properly identify not only model andViewType
, but alsoviewClass
. This allows event reactions to run for cases where two view subclasses, conforming toModelTransfer
, use the same model, and have similar events.
4.1.0
- Adds
setItems(_:)
method, that allows to set items for all sections inMemoryStorage
.
4.0.0
StorageUpdate
properties, that tracked changes independently of each other, have been replaced withobjectChanges
,sectionChanges
arrays, that track all changes in order they occuredStorageUpdate
now hasupdatedObjects
dictionary, that allow tracking objects, that have been updated, along with corresponding indexPath. It is done because UITableView and UICollectionView defer cell updates after insertions and deletions are completed, and therefore shift indexPaths. For example, if you were to insert 0 item and update it, UITableView would think that you are updating 1 item instead of 0, because it happens in single animation block and 0 item becomes 1.
3.0.0
No changes from previous betas.
3.0.0-beta.3
- Requires Realm 2.0 and higher.
- Fixes crash, that happens, when subscribing to Realm notifications and Realm is read-only(thanks, @augmentedworks!)
3.0.0-beta.2
- Enables
RealmStorage
withRealmSwift
dependency
3.0.0-beta.1
Swift 3.0 and higher is required for this version of framework.
Note. Beta 1 Does not include RealmStorage subspec due to RealmSwift.framework podspec issues
Reworked
UIReaction
class has been replaced with newEventReaction
class, that allows more flexible and powerful events usage- Supplementary models are now stored in
[String:[Int:Any]]
instead of[String:Any]
to support supplementary models, whose position is determined by indexPath in UICollectionView.SupplementaryStorageProtocol
,SupplementaryAccessible
protocols have been reworked to reflect those changes. MemoryStorageErrors
have been made anError
type following conventions from SE-0112.
Added
MemoryStorage
andRealmStorage
now implementSectionLocationIdentifyable
protocol, allowing any section to find out, what it's index is.SectionModel
andRealmSection
gainedcurrentSectionIndex
property, that shows index of section in sections array.displaySectionNameForSupplementaryKinds
property onCoreDataStorage
, that defines, for which supplementary kindsNSFetchedResultsController
sectionName
should be used as a data model.removeItemsFromSection
method onMemoryStorage
, that allows to remove all items from specific section
Removed
itemForCellClass:atIndexPath:
,itemForHeaderClass:atSectionIndex:
,itemsForFooterClass:atSectionIndex:
makeNSIndexSet
method, because Swift 3 allows to directly create IndexSet from bothArray
andSet
.
2.6.2
Fixed
CoreDataStorage
now properly updates new indexPath after Move event on iOS 9.