Skip to content

Releases: mergesort/GenericCells

Fixing podspec

19 Jan 22:19
fc0e3b6
Compare
Choose a tag to compare
  • The podspec now specifies Swift version 5.1 rather than 4.2.

SPM and Swift 5.1 Support

19 Jan 21:53
26655a4
Compare
Choose a tag to compare
  • Adding Swift 5.1 support.
  • Adding SPM support.

Swift 4.2 Support

24 Dec 16:52
Compare
Choose a tag to compare
  • That's all I got!

Swift 4 U + .01

25 Sep 19:20
Compare
Choose a tag to compare
  • contentView.preservesSuperviewLayoutMargins defaults to false with .layoutMargins defaults to .zero, to have more consistent behavior with UITableViewCell and UICollectionViewCell.

Swift 4 U

25 Sep 17:30
Compare
Choose a tag to compare
  • Adding support for Swift 4.

⚠️ Breaking changes ⚠️

  • GenericTableCell and GenericCollectionCell now are bound to the the cell's self.contentView.layoutMarginsGuide instead of self.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

25 Feb 16:46
Compare
Choose a tag to compare

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

28 Dec 22:59
Compare
Choose a tag to compare

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 🎉

26 Dec 19:27
Compare
Choose a tag to compare
1.0

Adding a way to statically register and dequeue UITableViewCells