Skip to content

0.1.2

Compare
Choose a tag to compare
@jessesquires jessesquires released this 16 Jul 18:17
· 98 commits to master since this release

This release closes the 0.1.2 milestone.

Breaking

  • Removed TableSectionViewModel.collapsed (#121, @jessesquires)

  • Removed undocumented initializers for CollectionSectionViewModel (the ones that received headerHeight: and/or footerHeight:) (#123, @jessesquires)

  • CollectionViewDriver.automaticDiffingEnabled is no longer public (#125, @jessesquires)

Fixed

  • Fixed a crash in diffing when transitioning to or from empty/nil states (#125, @jessesquires)

  • Fixed incorrect calculation for TableViewModel.isEmpty. It now correctly returns true only if all sections return true for isEmpty. (#123, @jessesquires)

New

Changed

  • Section and cell view models are now diffable by default. (#119, @jessesquires)
    Each provide default values for diffingKey, but you can customize them for your own needs or opt-out of automatic diffing.

    • CollectionSectionViewModel protocol now inherits from DiffableViewModel protocol
    • CollectionCellViewModel protocol now inherits from DiffableViewModel protocol
    • TableSectionViewModel protocol now inherits from DiffableViewModel protocol
    • TableCellViewModel protocol now inherits from DiffableViewModel protocol
  • CollectionViewDriver.automaticDiffingEnabled was reverted to be false by default (#125, @jessesquires)

⚠️ Known issues ⚠️

  • Automatic diffing for collection views with multiple sections currently fails (crashes) and possibly won't work in other scenarios. (Thus, the reason why auto-diffing is now false for CollectionViewDriver.) This will be fixed in the next release. Tracking at #126.