- Upgrade to Xcode 9.3.
- Fix a crash in
CompositeSupplementaryViewCreator
.
- Swift 4.0 Support.
- Adding
onItemsUpdated
to basic data sources to monitor changes toitems
property. - Adding most non-essential APIs to be
DataSourceSelector
so that, it's delegate methods is not called by default.
- Added the ability for
CompositeDataSource
andSegmentedDataSource
to automaticallyds_responds(to selector: DataSourceSelector)
if the subclass implemented the selector.
- Fix registering header/footer class method name to be
func ds_register(headerFooterClass view: UITableViewHeaderFooterView.Type)
instead of incorrect old namefunc ds_register(headerFooterNib view: UITableViewHeaderFooterView.Type)
.te
- Adding
asCollectionView()
andasTableView()
methods toGeneralCollectionView
to convert it toUICollectionView
andUITableView
respectively. - Adding
size
property toGeneralCollectionView
to get the size of the underlyingUICollectionView
/UITableView
.
@autoclosure
of casting fatal message. Improves performance since there is string manipulation.
ds_shouldConsumeItemSizeDelegateCalls
is unavailable, instead useds_responds(to selector: DataSourceSelector) -> Bool
, It takes an enum, with.size
it act the same asds_shouldConsumeItemSizeDelegateCalls
.- Fixes a bug that makes all table view cells editable by default.
- New
ds_responds(to selector: DataSourceSelector) -> Bool
to make it so easy to make some implementations ofDataSource
methods optional (e.g. we used it to fix the editable table view cells bug).
- Fixed a critical crash for
ds_collectionView(_:didEndDisplaying:forItemAt:)
inCompositeDataSource
.
- Adding
SegmentedDataSource
.
- Making Supplementary view optional as a workaround for the
UITableView
with .grouped style as it asks for the header/footer view even if the size is set as 0
UITableView
Header/Footer support.UICollectionView
Supplementary view support.
- Renaming methods to match Swift 3.0 conventions.
- Swift 3.0 Support.
- Deprecating
useDelegateForItemSize
in favor of automatic detection if the user implementedds_collectionView(_:sizeForItemAtIndexPath:)
or not. - Adding more code documentation and enhancing the readme file.