Bot releases are hidden (Show)
Published by DenTelezhkin about 6 years ago
Single section storage classes with support for automatic diffing.
SingleSectionStorage
classes are now a recommended way of handling items in single section in more powerful way than MemoryStorage
class.
Read more about it in README.
Support for Swift 4.2 and Xcode 10.
Convenience methods for conditional mappings and anomalies
MappingCondition
from ModelTransfer objectsPublished by DenTelezhkin over 6 years ago
MemoryStorage
. Read more about it in DTTableViewManager Anomaly Handler Readme section. Anomaly handler system requires Swift 4.1 and higher.MemoryStorage
happened from and to the same section with not enough items in section.Published by DenTelezhkin over 6 years ago
Published by DenTelezhkin over 6 years ago
Published by DenTelezhkin over 6 years ago
updateWithoutAnimations
method on MemoryStorage
was used.Published by DenTelezhkin over 6 years ago
Published by DenTelezhkin almost 7 years ago
MemoryStorage
. When turned on, updates are no longer applied automatically, but can be applied calling StorageUpdate.applyDeferredDatasourceUpdates()
method. Keep in mind, that not only datasource updates are not applied, but object and section changes are also empty until updates are applied. This behaviour is turned on by default, to disable it, callMemoryStorage.defersDatasourceUpdates = false
Realm
version 3.xPublished by DenTelezhkin almost 7 years ago
Published by DenTelezhkin about 7 years ago
Published by DenTelezhkin about 7 years ago
This is major release, containing breaking API changes, please read DTTableViewManager 6.0 Migration Guide
MemoryStorage
now has a convenience method for moving item without animations: moveItemWithoutAnimation(from:to:)
.EventReaction
class now has 4 and 5 argument reactionsViewModelMapping
was changed to be able to work with mapping blocks.RealmStorage
is not included in Carthage releases.setItems
method, that accepted array of arrays of items to set items for all sections, has been renamed to setItemsForAllSections
to provide more clarity and not to clash with setItems(_:forSection:)
method.Published by DenTelezhkin over 7 years ago
RealmStorage
now accepts RealmCollection
objects into section, thus allowing List
and LinkingObjects
to be used(previously only Results
objects could be used in section).Published by DenTelezhkin over 7 years ago
NSFetchedResultsControllerDelegate
NSFetchedResultsChangeType.update
change type in cases, where object inserts/removal/moves is used simultaneously with object updates(#17).Published by DenTelezhkin over 7 years ago
EventReaction
class to use ViewModelMapping
to properly identify not only model and ViewType
, but also viewClass
. This allows event reactions to run for cases where two view subclasses, conforming to ModelTransfer
, use the same model, and have similar events.Published by DenTelezhkin over 7 years ago
setItems(_:)
method, that allows to set items for all sections in MemoryStorage
.Published by DenTelezhkin almost 8 years ago
StorageUpdate
properties, that tracked changes independently of each other, have been replaced with objectChanges
, sectionChanges
arrays, that track all changes in order they occuredStorageUpdate
now has updatedObjects
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.Published by DenTelezhkin almost 8 years ago
No changes from previous betas.
Published by DenTelezhkin about 8 years ago
Published by DenTelezhkin about 8 years ago
RealmStorage
with RealmSwift
dependencyPublished by DenTelezhkin about 8 years ago
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
UIReaction
class has been replaced with new EventReaction
class, that allows more flexible and powerful events usage[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 an Error
type following conventions from SE-0112.MemoryStorage
and RealmStorage
now implement SectionLocationIdentifyable
protocol, allowing any section to find out, what it's index is.SectionModel
and RealmSection
gained currentSectionIndex
property, that shows index of section in sections array.displaySectionNameForSupplementaryKinds
property on CoreDataStorage
, that defines, for which supplementary kinds NSFetchedResultsController
sectionName
should be used as a data model.removeItemsFromSection
method on MemoryStorage
, that allows to remove all items from specific sectionitemForCellClass:atIndexPath:
, itemForHeaderClass:atSectionIndex:
, itemsForFooterClass:atSectionIndex:
makeNSIndexSet
method, because Swift 3 allows to directly create IndexSet from both Array
and Set
.Published by DenTelezhkin over 8 years ago
CoreDataStorage
now properly updates new indexPath after Move event on iOS 9.