Releases: plangrid/ReactiveLists
0.6.0
Breaking
- Dropped support for the
UITableViewRowAction
API in theTableViewCellModelEditActions
protocol, asUITableViewRowAction
is deprecated in iOS 13.TableViewCellModelEditActions
now uses theUISwipeActionsConfiguration
API instead. (#167, @ronaldsmartin)
Changed
- Introduce the
FlowLayoutCollectionCellViewModel
protocol to add support for specifying unique item sizes for collection views used withUICollectionViewFlowLayout
. (#178, @ronaldsmartin) - Upgrades SwiftLint to 0.31.0 and add several new rules. (#164, @anayini)
- Upgrade Travis to Xcode 10.2, SDK 12.2
0.5.1
Re-add support for Swift 4.2.
0.5.0
This release closes the 0.5.0 milestone.
Breaking
- Migrated to Swift 5.0
- Dropped support for iOS 10. iOS 11 and above now required.
Changed
- Upgraded to DifferenceKit to 1.1.0
0.4.0
This release closes the 0.4.0 milestone.
Breaking
-
Improve semantics of row height API (#154, @asmallteapot)
- Make
TableCellViewModel.rowHeight
optional, defaulting tonil
- Add
TableViewModel.defaultRowHeight
, defaulting to44.0
- Make
-
Updates the initializers for
TableSectionViewModel
andCollectionSectionViewModel
so that thediffingKey
argument is required. This prevents accidental misuse of the automatic diffing API, which was possible if you relied on the previous default parameter value. (#147, @ronaldsmartin)
Changed
0.3.0
This release closes the 0.3.0 milestone.
New
- Drop iOS 9 and migrate to Swift 4.2 (#144, @benasher44)
0.2.0
This release closes the 0.2.0 milestone.
Fixed
- Auto-diffing bugs and crashes (#136, @benasher44)
New
-
TableSectionViewModel
andCollectionSectionViewModel
now implementCollection
(#135, @benasher44) -
DifferenceKit is now used instead of Dwifft for faster diffing (#136, @benasher44)
0.1.4
This release closes the 0.1.4 milestone.
Fixed
Don't store an empty model for the first non-nil differ. (#137, @benasher44)
0.1.3
This release closes the 0.1.3 milestone.
Breaking
- Changes
TableViewModel.subscript
andCollectionViewModel.subscript
methods that return anOptional
by adding theifExists:
parameter name (separating them from future non-Optional
Collection
subscripts) (#131, @benasher44)
Fixed
- Fix edge case reloading bug when reloading a table view with diffing disabled (#128, @benasher44)
0.1.2
This release closes the 0.1.2 milestone.
Breaking
-
Removed
TableSectionViewModel.collapsed
(#121, @jessesquires) -
Removed undocumented initializers for
CollectionSectionViewModel
(the ones that receivedheaderHeight:
and/orfooterHeight:
) (#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 returntrue
forisEmpty
. (#123, @jessesquires)
New
-
Added
CollectionSectionViewModel.isEmpty
property (#123, @jessesquires) -
Added
CollectionViewModel.isEmpty
property (#123, @jessesquires)
Changed
-
Section and cell view models are now diffable by default. (#119, @jessesquires)
Each provide default values fordiffingKey
, but you can customize them for your own needs or opt-out of automatic diffing.CollectionSectionViewModel
protocol now inherits fromDiffableViewModel
protocolCollectionCellViewModel
protocol now inherits fromDiffableViewModel
protocolTableSectionViewModel
protocol now inherits fromDiffableViewModel
protocolTableCellViewModel
protocol now inherits fromDiffableViewModel
protocol
-
CollectionViewDriver.automaticDiffingEnabled
was reverted to befalse
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
forCollectionViewDriver
.) This will be fixed in the next release. Tracking at #126.
0.1.1
This release closes the 0.1.1 milestone.
Breaking
- Upgrade to Swift 4.1, Xcode 9.4 now required
Fixed
- Fix reloading bugs when going from non-nil to nil models
- Improved
TableViewDriver
animations when diffing - Fixed rare crash caused by UIKit passing a bad
IndexPath
to dequeue cells - Podspec issues
New
- You can now customize the cell insertion and deletion animations on
TableViewDriver
. (#115, @wickwirew) ViewRegistrationInfo
propertiesreuseIdentifier
andregistrationMethod
are now publicViewRegistrationInfo
now conforms toEquatable
SupplementaryViewInfo
now conforms toEquatable
SupplementaryViewKind
now conforms toEquatable
CellAccessibilityFormat
now conforms toEquatable
SupplementaryAccessibilityFormat
now conforms toEquatable