Releases: mergesort/GenericCells
Releases · mergesort/GenericCells
Fixing podspec
SPM and Swift 5.1 Support
- Adding Swift 5.1 support.
- Adding SPM support.
Swift 4.2 Support
- That's all I got!
Swift 4 U + .01
contentView.preservesSuperviewLayoutMargins
defaults to false with.layoutMargins
defaults to.zero
, to have more consistent behavior withUITableViewCell
andUICollectionViewCell
.
Swift 4 U
- Adding support for Swift 4.
⚠️ Breaking changes ⚠️
-
GenericTableCell
andGenericCollectionCell
now are bound to the the cell'sself.contentView.layoutMarginsGuide
instead ofself.contentView
anchors. -
This replaces the old functionality where you would set a
contentInsets
property.
If you wish to set custom insets, instead of writing:
cell.contentInsets = UIEdgeInsets(top: 10.0, left: 20.0, bottom: 10.0, right: 20.0)
Now write:
cell.layoutMargins = UIEdgeInsets(top: 10.0, left: 20.0, bottom: 10.0, right: 20.0)
Prettying things up
Were you tired of writing 3 lines of code? So was I.
There is now a default implementation for prepareForReuse
, in case you don't have anything that needs reusing in your cell.
Expanding The Scope
GenericTableCell is now GenericCells.
This means that all the fun stuff you could do with a UITableView, you can now do with a UICollectionView. 🎊 🦁 🎊
Initial release 🎉
1.0 Adding a way to statically register and dequeue UITableViewCells