Skip to content

5.0.0 - Function builders, % api, CGFloat, api clean, UIStackViews !

Pre-release
Pre-release
Compare
Choose a tag to compare
@s4cha s4cha released this 05 Apr 10:08
· 61 commits to master since this release

⚠️ A serious bug has been found in this release, please use 5.0.1 instead ⚠️

Bug found that can break your layouts -> #141

  • Adds support for CGFloat for all apis
  • % constraints can now be used in layout blocks for margins, height & spaces
  • sv() is renamed to subviews() for clarity
  • subviews() has now its function builder counterpart: subviews{} (no more commas!)
  • layout() has now its function builder counterpart: layout {}
  • fillVertically(m:) is renamed to fillVertically(padding:)
  • fillHorizontally(m:) is renamed to fillHorizontally(padding:)
  • fillContainer(x) is renamed to fillContainer(padding: x)
  • centerHorizontally(x) is renamed to centerHorizontally(offset: x)
  • Double dash -- operator is renamed in hyphen bullet for better compile times. (auto replace)
  • Adds UIStackView arrangedSubviews {} function builder