Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 2.38 KB

CHANGELOG.md

File metadata and controls

55 lines (39 loc) · 2.38 KB

GenericDataSource

3.0.2

  • Upgrade to Xcode 9.3.

3.0.1

  • Fix a crash in CompositeSupplementaryViewCreator.

3.0.0

  • Swift 4.0 Support.

2.4.5

  • Adding onItemsUpdated to basic data sources to monitor changes to items property.
  • Adding most non-essential APIs to be DataSourceSelector so that, it's delegate methods is not called by default.

2.4.4

  • Added the ability for CompositeDataSource and SegmentedDataSource to automatically ds_responds(to selector: DataSourceSelector) if the subclass implemented the selector.

2.4.3

  • Fix registering header/footer class method name to be func ds_register(headerFooterClass view: UITableViewHeaderFooterView.Type) instead of incorrect old name func ds_register(headerFooterNib view: UITableViewHeaderFooterView.Type).te

2.4.2

  • Adding asCollectionView() and asTableView() methods to GeneralCollectionView to convert it to UICollectionView and UITableView respectively.
  • Adding size property to GeneralCollectionView to get the size of the underlying UICollectionView/UITableView.

2.4.1

  • @autoclosure of casting fatal message. Improves performance since there is string manipulation.

2.4.0

  • ds_shouldConsumeItemSizeDelegateCalls is unavailable, instead use ds_responds(to selector: DataSourceSelector) -> Bool, It takes an enum, with .size it act the same as ds_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 of DataSource methods optional (e.g. we used it to fix the editable table view cells bug).

2.3.1

  • Fixed a critical crash for ds_collectionView(_:didEndDisplaying:forItemAt:) in CompositeDataSource.

2.3.0

  • Adding SegmentedDataSource.

2.2.1

  • 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

2.2.0

  • UITableView Header/Footer support.
  • UICollectionView Supplementary view support.

2.1.0

  • Renaming methods to match Swift 3.0 conventions.

2.0.0

  • Swift 3.0 Support.

1.0.1

  • Deprecating useDelegateForItemSize in favor of automatic detection if the user implemented ds_collectionView(_:sizeForItemAtIndexPath:) or not.
  • Adding more code documentation and enhancing the readme file.