All notable changes to this project will be documented in this file.
- Optimized cell registration, reducing cell instances created when registering (thanks @stephenjames, #83)
- Compilation warning for associated object keys
- Support for iOS 11 / tvOS 11
- Support for
UITableViewDelegate.tableView(_:canPerformPrimaryActionForRowAt:)andUITableViewDelegate.tableView(_:performPrimaryActionForRowAt:)delegate methods on iOS 16 and tvOS 16. - Support for
UIHostingConfigurationon iOS 16 / tvOS 16 / macCatalyst 16:
manager.registerHostingConfiguration(for: Post.self) { _, post, _ in
UIHostingConfiguration {
PostView(post: post)
}
}It's also possible to incorporate UIKit cell states by simply adding additional parameter to registration:
manager.registerHostingConfiguration(for: Post.self) { state, _, post, _ in
UIHostingConfiguration {
PostView(post: post, isSelected: state.isSelected)
}
}- Support for events, wrapping
UITableViewDataSourcePrefetchingprotocol.
manager.register(PostCell.self) { mapping in
mapping.prefetch { model, indexPath in }
mapping.cancelPrefetch { model, indexPath in }
}Please note, that while datasource methods are called once per array of indexPaths, events for models will be called individually, so single model (and indexPath) is passed to each event. Theoretically, this should make prefetching and cancellation easier, since you no longer need to walk through array and find all data models, you can operate on a single data model at a time.
- Cell / View events, registered with
DTTableViewManagerare soft-deprecated. Please use events in mapping instead:
Deprecated:
manager.register(PostCell.self)
manager.didSelect(PostCell.self) { postCell, post, indexPath in }Recommended:
manager.register(PostCell.self) { mapping in
mapping.didSelect { postCell, post, indexPath in }
}While previously main benefits for second syntax were mostly syntactic, now with support for SwiftUI it will be hard to actually specialize hosting cells (and might be impossible when iOS 16 hosting configuration is supported), so only second syntax will work for all kinds of cells, and first syntax can only work for non-SwiftUI cells. New delegate methods for UITableView (starting with iOS 16 / tvO 16 SDK) will be added only as extension to mapping protocols, not DTTableViewManager itself.
Registering SwiftUI views as content for table view cells:
manager.registerHostingCell(for: Post.self) { model, indexPath in
PostSwiftUIView(model: model)
}This method is supported on iOS 13+ / tvOS 13+ / macCatalyst 13+.
Please note, that this integration is not supported by Apple, therefore it comes with several workarounds, read more about those in SwiftUI support document
HostingCellViewModelMapping-CellViewModelMappingsubclass to register mappings fro SwiftUI views.HostingTableViewCell-UITableViewCellsubclass , implementing container for SwiftUI view embedded into it.HostingTableViewCellConfiguration- configuration for SwiftUI views hosting insideHostingTableViewCell.
- Event reactions are now defined in protocol extension instead of extending former
ViewModelMappingprotocol, thus allowing to call those methods not only for UIKit mappings, but SwiftUI-hosted cells as well.
ViewModelMappingclass and it's protocol have been split into multiple classes and protocols for better subclassability (for exampleCellViewModelMapping/TableViewCellModelMapping). Please note, that while technically this is breaking, it's very unlikely to break anything in code, since this type is only present in mapping closures, and public interfaces did not change at all.
- Closure wrappers for iOS 15
tableView:selectionFollowsFocusForRowAtmethod.
- To align version numbers between
DTModelStorage,DTTableViewManagerandDTCollectionViewManager,DTTableViewManagerwill not have 9.x release, instead it's being released as 10.x.
- Wrappers for
tableView:willCommitMenuWithAnimatordelegate method, that was only briefly available in Xcode 12, and was removed by Apple in one of Xcode 12 releases.
usesLegacyTableViewUpdateMethodonTableViewUpdaterconfigureDiffableDatasourcedeprecated method that returnedUITableViewDiffableDataSourceReference.
- Diffable datasources exceptions in Xcode 13 / iOS 15 with some internal restructuring.
- Swift 5.4 / Xcode 12.5 warnings.
- Support for DTModelStorage 9.1
- Cell and supplementary view events are now available inside mapping closure directly, for example:
// Previous releases
manager.register(PostCell.self)
manager.didSelect(PostCell.self) { cell, model, indexPath in
// React to selection
}
// New
manager.register(PostCell.self) { mapping in
mapping.didSelect { cell, model, indexPath in
}
}Those events are now tied to ViewModelMapping instance, which means, that events, registered this way, will only trigger, if mapping condition of current mapping applies. For example:
manager.register(PostCell.self) { mapping in
mapping.condition = .section(0)
mapping.didSelect { cell, model, indexPath in
// This closure will only get called, when user selects cell in the first section
}
}
manager.register(PostCell.self) { mapping in
mapping.condition = .section(1)
mapping.didSelect { cell, model, indexPath in
// This closure will only get called, when user selects cell in the second section
}
}Please note, that headers and footers only support mapping-style event registration, if they inherit from UITableViewHeaderFooterView.
TableViewConfigurationsemanticHeaderHeightandsemanticFooterHeight, that specify whetherDTTableViewManagershould deploy custom logic intableView(_ tableView: UITableView, heightForHeaderInSection section: Int)andtableView(_ tableView: UITableView, heightForFooterInSection section: Int). This logic includes checking whether header and footer models exist in storage, returningUITableView.automaticDimensionfor sections, whose header and footer models are Strings (for table section titles), as well as returning minimal height for cases where data model is not there(which happens to be different forUITableView.Style.plainandUITableView.Style.grouped). Those properties default to true, but if you want to use self-sizing table view sections headers or footers, which may improve perfomance, consider turning those off:
manager.configuration.semanticHeaderHeight = false
manager.configuration.semanticFooterHeight = falsePlease note, that even when those properties are set to false, corresponding UITableViewDelegate methods will still be called in two cases:
- Your
DTTableViewManageableinstance implements them - You register a
heightForHeader(withItem:_:)orheightForFooter(withItem:_:)closures onDTTableViewManagerinstance.
This release requires Swift 5.3. Minimum iOS / tvOS deployment targets are unchanged (iOS 11, tvOS 11).
Some context: this release heavily relies on where clauses on contextually generic declarations, that are only available in Swift 5.3 - SE-0267.
ViewModelMappingis now a generic class, that captures view and model information(ViewModelMapping<T,U>).
indentationLevelForCellclosure now correctly returnsIntinstead ofCGFloat.- Several event API's have been improved to allow returning nil for methods, that accept nil as a valid value:
contextMenuConfiguration,previewForHighlightingContextMenu,previewForDismissingContextMenu.
- Generic placeholders for cell/model/view methods have been improved for better readability.
- Several cell/header/footer/supplementary view registration methods have been deprecated to unify registration logic. Please use
register(_:mapping:handler:),registerHeader(_:mapping:handler:),registerFooter(_:mapping:handler:)as a replacements for all of those methods. For more information on those changes, please read migration guide. - All non-deprecated registration methods now have an additional
handlerclosure, that allows to configure cells/headers/footers that are dequeued from UITableView. This is a direct replacement forconfigure(_:_:,configureHeader(_:_:),configureFooter(_:_:), that are all now deprecated. Please note, that handler closure is called beforeDTModelTransfer.update(with:)method. DTTableViewManager.configureEvents(for:_:), it's functionality has become unnecessary since mapping closure of cell/header/footer registration now captures both cell and model type information for such events.DTTableViewManager.configureDiffableDataSource(modelProvider:)for non-hashable data models. Please use configureDiffableDataSource method for models, that are Hashable. From Apple's documentation:If you’re working in a Swift codebase, always use UITableViewDiffableDataSource instead.TableViewUpdater.usesLegacyTableViewUpdateMethodsproperty.
- Deployment targets - iOS 11 / tvOS 11.
- Minimum Swift version required: 5.0
- Added support for DTModelStorage/Realm with Realm 5
Please note, that this framework version source is identical to previous version, which supports iOS 8 / tvOS 9 / Swift 4.0 and higher.
- It's not longer necessary to import DTModelStorage framework to use it's API's.
import DTTableViewManagernow implicitly exportsDTModelStorage.
willCommitMenuWithAnimatormethod has been made unavailable for Xcode 11.2, becauseUITableViewDelegatemethod it used has been removed from UIKit on Xcode 11.2.
- Added support for Xcode versions, that are older than Xcode 11.
This is a major release with some breaking changes, please read DTTableViewManager 7.0 Migration Guide
configureDiffableDataSource(modelProvider:)method to enableUITableViewDiffableDataSourcewithDTTableViewManager.- Ability for
DTTableViewManageableto implementtableView(_:viewForHeaderInSection:)andtableView(_:viewForFooterInSection:)to return view directly without going through storages. minimalHeaderHeightForTableViewandminimalFooterHeightForTableViewproperties forTableViewConfiguration, that allows configuring height for section headers and footers that need to be hidden.- Ability to customize bundle, from which xib files are loaded from by setting
bundleproperty onViewModelMappinginmappingBlock. As before,bundledefaults toBundle(for: ViewClass.self). DTTableViewManager.supplementaryStoragegetter, that conditionally casts current storage toSupplementaryStorageprotocol.
New method wrappers for iOS 13 API
shouldBeginMultipleSelectionInteractiondidBeginMultipleSelectionInteractiondidEndMultipleSelectionInteractioncontextMenuConfiguration(for:)previewForHighlightingContextMenupreviewForDismissingContextMenuwillCommitMenuWithAnimator
- If tableView section does not contain any items, and
TableViewConfiguration.display<Header/Footer>OnEmptySectionproperty is set to false,DTTableViewManagerno longer asks for header footer height explicitly and returnsTableViewConfiguration.minimal<Header/Footer>HeightForTableView. - Anomaly event verification now allows subclasses to prevent false-positives.
animateChangesOffScreenproperty onTableViewUpdaterthat allows to turn off animated updates forUITableViewwhen it is not on screen.
- Usage of previously deprecated and now removed from
DTModelStorageViewModelMappingCustomizingprotocol.
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 DTTableViewManager include:
SupplementaryAccessibleextension withtableHeaderModelandtableFooterModelproperties has been removed.- Because headers/footers are now a closure based API,
setSectionHeaderModelsandsetSectionFooterModelsdo not create sections by default, and do not call tableView.reloadData. - If a storage does not contain any sections, even if
configuration.displayHeaderOnEmptySectionsorconfiguration.displayFooterOnEmptySectionsis set, headers and footers will not be displayed, since there are no sections, which is different from present sections, that contain 0 items. For example, If you need to show a header or footer in empty section using MemoryStorage, you can callmemoryStorage.setItems([Int](), forSectionAt: emptySectionIndex), and now with empty section header and footer can be displayed.
Other breaking changes:
tableViewUpdaterwill contain nil ifDTTableViewManageris configured to work withUITableViewDiffableDataSource.DTTableViewOptionalManageableprotocol was removed and replaced byoptionalTableViewproperty onDTTableViewManageableprotocol. One oftableView/optionalTableViewproperties must be implemented byDTTableViewManageableinstance to work withDTTableViewManager.
Following methods have been deprecated due to their delegate methods being deprecated in iOS 13:
editActions(for:)shouldShowMenuForItemAtcanPerformActionperformAction
- Added support for Swift Package Manager in Xcode 11
- Convenience constructor for
DTTableViewManagerobject:init(storage:)that allows to create it's instance without initializingMemoryStorage. - Static variable
defaultStorageonDTTableViewManagerthat allows to configure whichStorageclass is used by default. - Documentation
- Support for Xcode 10.2 and Swift 5
- Support for Xcode 9 and Swift 3
Dependency changelog -> DTModelStorage 7.2.0 and higher
- Example of auto-diffing capability and animations when using
SingleSectionStorage. - Support for Swift 4.2 and Xcode 10.
- Reduced severity comment for
nilHeaderModelandnilFooterModelanomalies, since in some cases it's actually a desired behavior.
- Anomaly detecting system for various errors in
DTTableViewManager. 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.
- Calling
startManaging(withDelegate:_)method is no longer required.
viewFactoryErrorHandlerdeprecated property onDTTableViewManagerwas removed. All previously reported errors and warnings are now a part of anomaly detecting system.
editingStyle(for:_,_:)method was replaced witheditingStyle(forItem:_,:_)method, that accepts model and indexPath closure, without cell. Reason for that is thatUITableViewmay call this method when cell is not actually on screen, in which case this event would not fire, and current editingStyle of the cell would be lost.
- Updates for Xcode 9.3 and Swift 4.1
- Implemented new system for deferring datasource updates until
performBatchUpdatesblock. This system is intended to fight crash, that might happen whenperformBatchUpdatesmethod is called afterUITableView.reloadDatamethod(for example after callingmemoryStorage.setItems, and then immediatelymemoryStorage.addItems). This issue is detailed in DenTelezhkin/DTCollectionViewManager#27 and DenTelezhkin/DTCollectionViewManager#23. This crash can also happen, if iOS 11 APIUITableView.performBatchUpdatesis used. This system is turned on by default. If, for some reason, you want to disable it and have old behavior, call:
manager.memoryStorage.defersDatasourceUpdates = falseTableViewUpdaternow uses iOS 11performBatchUpdatesAPI, if this API is available. This API will work properly onMemoryStorageonly ifdefersDatasourceUpdatesis set totrue- which is default. However, if for some reason you need to use legacy methodsbeginUpdates,endUpdates, you can enable them like so:
manager.tableViewUpdater?.usesLegacyTableViewUpdateMethods = truePlease note, though, that new default behavior is recommended, because it is more stable and works the same on both UITableView and UICollectionView.
tableViewUpdaterproperty onDTTableViewManageris now ofTableViewUpdatertype instead of opaqueStorageUpdatingtype. This should ease use of this object and prevent type unneccessary type casts.
- Updated to Xcode 9.1 / Swift 4.0.2
- Makes
DTTableViewManagerproperty weak instead of unowned to prevent iOS 10-specific memory issues/crashes.
- Build with Xcode 9.0 final release.
- Fixed partial-availability warnings.
This is a major release with some breaking changes, please read DTTableViewManager 6.0 Migration Guide
- Added
updateVisibleCells(_:) method, that allows updating cell data for visible cells with callback on each cell. This is more efficient than callingreloadDatawhen number of elements inUITableViewdoes not change, and only contents of items change. - Implement
configureEvents(for:_:)method, that allows batching in several cell events to avoid using T.ModelType for events, that do not have cell created. - Added event for
UITableViewDelegatetableView(_:targetIndexPathForMoveFromRowAt:toProposedIndexPath: - Added events for focus engine on iOS 9
- Added events for iOS 11
UITableViewDelegatemethods:tableView(_:leadingSwipeActionsConfigurationForRowAt:,tableView(_:trailingSwipeActionsConfigurationForRowAt:,tableView(_:shouldSpringLoadRowAt:withContext: UITableViewDelegateandUITableViewDatasourceimplementations have been refactored fromDTTableViewManagertoDTTableViewDelegateandDTTableViewDataSourceclasses.DTTableViewManagernow allows registering mappings for specific sections, or mappings with any custom condition.- Added
move(_:_:)method to allow setting up events, reacting totableView:moveRowAt:to:method.
- Signature of
move(_:_:)method has been changed to make it consistent with other events. Arguments received in closure are now:(destinationIndexPath: IndexPath, cell: T, model: T.ModelType, sourceIndexPath: IndexPath) tableView(UITableView, moveRowAt: IndexPath, to: IndexPath)no longer automatically moves items, if current storage isMemoryStorage. Please useMemoryStorageconvenience methodmoveItemWithoutAnimation(from:to:)to move items manually.
- Error handling system of
DTTableViewManageris deprecated and can be removed or replaced in future versions of the framework.
Dependency changelog -> DTModelStorage 5.0.0 and higher
- Use new events system from DTModelStorage, that allows events to be properly called for cells, that are created using
ViewModelMappingCustomizingprotocol.
- Setting
TableViewUpdaterinstance totableViewUpdaterproperty onDTTableViewManagernow triggersdidUpdateContentclosure onTableViewUpdater. - Added
sectionIndexTitlesevent to replaceUITableViewDataSource.sectionIndexTitles(for:)method. - Added
sectionForSectionIndexTitleevent to replaceUITableViewDataSource.tableView(_:sectionForSectionIndexTitle:at)method.
- All events that return Optional value now accept nil as a valid event result.
didDeselect(_:,_:)method now accepts closure without return type - sinceUITableViewDelegatedoes not have return type in that method.
Dependency changelog -> DTModelStorage 4.0.0 and higher
TableViewUpdaterhas been rewritten to use newStorageUpdateproperties that track changes in order of their occurence.TableViewUpdaterreloadRowClosureandDTTableViewManagerupdateCellClosurenow accept indexPath and model instead of just indexPath. This is done because update may happen after insertions and deletions and object that needs to be updated may exist on different indexPath.
No changes
DTModelStoragedependency now requiresRealm 2.0UITableViewDelegateheightForHeaderInSectionandheightForFooterInSectionare now properly called on the delegate, if it implements it(thanks, @augmentedworks!).
DTTableViewOptionalManageableprotocol, that is identical toDTTableViewManageable, but allows optionaltableViewproperty instead of implicitly unwrapped one.- Enabled
RealmStoragefromDTModelStoragedependency
This is a major release, written in Swift 3. Read Migration guide with descriptions of all features and changes.
Dependency changelog -> DTModelStorage 3.0.0 and higher
- New events system that covers almost all available
UITableViewDelegateandUITableViewDataSourcedelegate methods. - New class -
TableViewUpdater, that is calling all animation methods forUITableViewwhen required by underlying storage. updateCellClosuremethod onDTTableViewManager, that manually updates visible cell instead of callingtableView.reloadRowsAt(_:)method.coreDataUpdaterproperty onDTTableViewManager, that createsTableViewUpdaterobject, that follows Apple's guide for updatingUITableViewfromNSFetchedResultsControllerDelegateevents.isManagingTableViewproperty onDTTableViewManagerunregisterCellClass(_:),unregisterHeaderClass(_:),unregisterFooterClass(_:)methods to unregister mappings fromDTTableViewManagerandUITableView
- Event system is migrated to new
EventReactionclass fromDTModelStorage - Swift 3 API Design guidelines have been applied to all public API.
- Section and row animations are now set on
TableViewUpdaterclass instead ofTableViewConfiguration
itemForVisibleCell,itemForCellClass:atIndexPath:,itemForHeaderClass:atSectionIndex:,itemForFooterClass:atSectionIndex:were removed - they were not particularly useful and can be replaced with much shorter Swift conditional typecasts.registerCellClass:whenSelectedmethod- All events methods with method pointer semantics. Please use block based methods instead.
dataBindingBehaviourproperty.viewBundleproperty onDTTableViewManager. Bundle is not determined automatically based on view class.DTTableViewContentUpdatableprotocol. UseTableViewUpdaterproperties instead.
- Support for building in both Swift 2.2 and Swift 2.3
- Now all view registration methods use
NSBundle(forClass:)constructor, instead of falling back onDTTableViewManagerviewBundleproperty. This allows having cells from separate bundles or frameworks to be used with singleDTTableViewManagerinstance.
Dependency changelog -> DTModelStorage 2.6.0 and higher
Dependency changelog -> DTModelStorage 2.5 and higher
- Update to Swift 2.2. This release is not backwards compatible with Swift 2.1.
- Require Only-App-Extension-Safe API is set to YES in framework targets.
- Fixed a bug, where prototype cell from storyboard could not be created after calling
registerCellClass(_:)method.
- Support for Realm database storage - using
RealmStorageclass. - Ability to defer data binding until
tableView(_:willDisplayCell:forRowAtIndexPath:)method is called. This can improve scrolling perfomance for table view cells.
manager.dataBindingBehaviour = .BeforeCellIsDisplayed- UIReactions now properly unwrap data models, even for cases when model contains double optional value.
- Issue with Swift 2.1.1 (XCode 7.2) where storage.delegate was not set during initialization
Dependency changelog -> DTModelStorage 2.3 and higher
This release aims to improve mapping system and error reporting.
- New mapping system with support for protocols and subclasses
- Mappings can now be customized using
DTViewModelMappingCustomizableprotocol. - Custom error handler for
DTTableViewFactoryErrorerrors.
- preconditionFailures have been replaced with
DTTableViewFactoryErrorErrorType - Internal
TableViewReactionclass have been replaced byUIReactionclass from DTModelStorage.
Dependency changelog -> DTModelStorage 2.2 and higher
- Added support for Apple TV platform (tvOS).
registerNiblessFooterClassmethod now works correctly.
objectForCellClasscategory of methods have been removed to read item in their title instead of object.
TableViewStorageUpdatingprotocol and conformance has been removed as unnecessary.
- Improved stability by treating UITableView as optional
Dependency changelog -> DTModelStorage 2.1 and higher
This release aims to improve storage updates and UI animation with UITableView. To make this happen, DTModelStorage classes were rewritten and rearchitectured, using Swift Set.
There are some backwards-incompatible changes in this release, however Xcode quick-fix tips should guide you through what needs to be changed.
registerNiblessHeaderClassandregisterNiblessFooterClassmethods to support creatingUITableViewHeaderFooterViews from code
- Fixed retain cycles in event blocks
New events registration system with method pointers, that automatically breaks retain cycles.
For example, cell selection:
manager.cellSelection(PostsViewController.selectedCell)
func selectedCell(cell: PostCell, post: Post, indexPath: NSIndexPath) {
// Do something, push controller probably?
}Alternatively, you can use dynamicType to register method pointer:
manager.cellSelection(self.dynamicType.selectedCell)Other available events:
- cellConfiguration
- headerConfiguration
- footerConfiguration
beforeContentUpdate and afterContentUpdate closures were replaced with DTTableViewContentUpdatable protocol, that can be adopted by your DTTableViewManageable class, for example:
extension PostsViewController: DTTableViewContentUpdatable {
func afterContentUpdate() {
// Do something
}
}4.0 is a next major release of DTTableViewManager. It was rewritten from scratch in Swift 2 and is not backwards-compatible with previous releases.
Read 4.0 Migration guide.
- Improved
ModelTransferprotocol with associatedModelType DTTableViewManageris now a separate object- New events system, that allows reacting to cell selection, cell/header/footer configuration and content updates
- Added support for
UITableViewController, and any other object, that hasUITableView - New storage object generic-type getters
- Support for Swift types - classes, structs, enums, tuples.
- Fixed an issue, where storageDidPerformUpdate method could be called without any updates.
- Added support for installation using Carthage 🍻
- Added nullability annotations for XCode 6.3 and Swift 1.2
Added removeAllTableItemsAnimated method.
Fixed issue, that could lead to wrong table items being removed, when using memory storage removeItemsAtIndexPaths: method.
- Supported frameworks installation from CocoaPods - requires iOS 8.
- Full Swift support, including swift model classes
- Added convenience method to update section items
- Added
DTTableViewControllerEventsprotocol, that allows developer to react to changes in datasource - Registering header or footer view now automatically changes default header/footer style to DTTableViewSectionStyleView.
DTSectionModelmethodsheaderModelandfooterModelwere renamed. UsetableHeaderModelandtableFooterModelinstead.DTStorageprotocol was renamed toDTStorageProtocol.DTTableViewDataStorageclass was removed, it's methods were merged inDTMemoryStorageDTDefaultCellModelandDTDefaultHeaderFooterModelwere removed.
This is a release, that is targeted at improving code readability, and reducing number of classes and protocols inside DTTableViewManager architecture.
DTTableViewMemoryStorageclass was removed. It's methods were transferred toDTMemoryStorage+DTTableViewManagerAdditionscategory.DTTableViewStorageUpdatingprotocol was removed. It's methods were moved toDTTableViewController.
- When using
DTCoreDataStorage, section titles are displayed by default, if NSFetchedController was created with sectionNameKeyPath property.
Preliminary support for Swift.
If you use cells, headers or footers inside storyboards from Swift, implement optional reuseIdentifier method to return real Swift class name instead of the mangled one. This name should also be set as reuseIdentifier in storyboard.
Reuse identifier now needs to be identical to cell, header or footer class names. For example, UserTableCell should now have "UserTableCell" reuse identifier.
Added properties of DTTableViewController to control, whether section headers and footers should be shown for sections, that don't contain any items.
Removed DTModelSearching protocol, please use DTMemoryStorage setSearchingBlock:forModelClass: method instead.
DTModelSearchingprotocol is deprecated and is replaced by memoryStorage method setSearchingBlock:forModelClass:- UITableViewDelegate and UITableViewDatasource properties for UITableView are now filled automatically.
- Added more assertions, programmer errors should be easily captured.
Storage classes now use external dependency from DTModelStorage repo.
Some method calls on memory storage have been renamed, dropping 'table' part from the name, for example
-(void)addTableItems:(NSArray *)itemsnow becomes
-(void)addItems:(NSArray *)itemsSeveral protocols and classes have been also renamed:
DTTableViewModelTransfer - DTModelTransfer
DTTableViewModelSearching - DTModelSearching
DTTableViewCoreDataStorage - DTCoreDataStorage
Added support for default UITableViewCellStyles and default UITableViewHeaderFooterViews without subclassing.
DTTableViewManager 2.0 is a major update to the framework with several API - breaking changes. Please read DTTableViewManager 2.0 transition guide for an overview.
Added support for storyboard prototype cells.
DTTableViewManager renamed to DTTableViewController.
Fixed bug, which prevented using correct height values on custom headers and footers.
Added ability to disable logging
Improved structure of mapping code, now mapping and cell creation happens completely in DTCellFactory class.
Introducing support for Foundation data models. Cell, header and footer mapping now supports following classes:
- NSString / NSMutableString
- NSNumber
- NSDictionary / NSMutableDictionary
- NSArray / NSMutableArray
- option to not reuse cells is removed. Currently there's no obvious reason to not have cell reuse.
Powerful and easy search within UITableView.
Tests are now running on Travis-CI
Ability to create DTTableViewManager as a separate object was removed. If you need to subclass from different UIViewController, consider using iOS Containment API.