Skip to content

Releases: DenTelezhkin/DTModelStorage

2.6.1

30 May 15:44
Compare
Choose a tag to compare

Fixed

  • Now properly handles case, when deleteSections method was called with index, that is not present in MemoryStorage or RealmStorage

Added

  • setSectionWithResults(_:forSectionIndex:) for RealmStorage

Updated

  • Realm dependency to 1.0.0

2.6.0

24 May 15:31
Compare
Choose a tag to compare

Changed

  • Support for fine-grained notifications in Realm
  • Update to Realm 0.103.1 and higher.

Fixed

2.5.1

24 May 13:59
Compare
Choose a tag to compare

Changed

  • Realm dependency updated to 0.102 version.

2.5.0

27 Apr 11:48
Compare
Choose a tag to compare

Breaking

  • Update to Swift 2.2. This release is not backwards compatible with Swift 2.1.

Added

  • insertItems(_:toIndexPaths:) method, that mirrors UITableView insertRowsAtIndexPaths(_:withRowAnimation:) and UICollectionView insertItemsAtIndexPaths(_:) method
  • totalNumberOfItems computed property in MemoryStorage, 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

06 Mar 11:03
Compare
Choose a tag to compare

Changed

  • All methods were moved from extensions to class bodies to allow overriding them in @nonobjc subclasses.

2.4.2

06 Mar 11:02
Compare
Choose a tag to compare

Changed

  • replaceItem(_:replacingItem:) method no longer requires second argument to be Equatable.

2.4.0

05 Jan 15:36
Compare
Choose a tag to compare

Added

  • RealmStorage and RealmSection class, that allows using Realm database results as a storage for DTTableView and DTCollectionViewManager.
  • 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 and numberOfObjects -> items, numberOfItems

2.3.0

30 Nov 16:19
Compare
Choose a tag to compare

Added

  • ViewModelMapping class, that allows to store and retrieve mappings using type checks instead of runtime introspection
  • UIReaction class, that will allow DTTableViewManager and DTCollectionViewManager to react to selection and configuration events. This class supersedes TableViewReaction and CollectionViewReaction internal classes, that previously served the same purpose.
  • DTViewModelMappingCustomizable protocol to allow customization of ViewModelMapping.

Removed

  • RuntimeHelper model introspection methods

2.2.0

01 Nov 18:06
Compare
Choose a tag to compare

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

19 Oct 06:03
Compare
Choose a tag to compare

Fixed

  • insertItem(_:atIndexPath:) method now properly accepts zero index path in empty section