Stevia Versions Save

:leaves: Concise Autolayout code

5.1.4

1 month ago

5.1.3

1 month ago

5.1.2

1 year ago

Thanks @cowgp for this release.

5.1.1

3 years ago

-Adds Int and CGFloat variants for SteviaLayoutAnchor operators. (Fixes https://github.com/freshOS/Stevia/issues/153)

Congrats @edulpn for this release 👏

5.1.0

3 years ago

Updates to swift-tools-version:5.3

5.0.1

4 years ago

Thanks @moliya for noticing CGFloat values were broken in layout blocks, this is now fixed 🎉

5.0.0

4 years ago

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

Bug found that can break your layouts -> https://github.com/freshOS/Stevia/pull/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

4.8.0

4 years ago

Swift Package Manager is now the official way to install Stevia 🎉. In order to use other package managers, see previous versions. Onwards ! ✨

4.7.3

4 years ago
  • Builds the pre-built framework with Xcode 11.2.1 & Swift 5.2.1

4.7.2

4 years ago
  • Fixes the issue described in #123 where equation api had bugs when using >= & <= with single values. Props @jsonfellin for noticing, thanks @excursus for chiming in 🙏

Before

view.Width >= 30 ≠ view.width(>=30)
view.Width >= 30 was equivalent to view.Width >= Width + 30 (Wrong)
view.Botton >= 100 was equivalent to view.Bottom >= Bottom + 100 (Wrong)
view.Right >= 100 was equivalent to view.Right >= Right + 100 (Wrong)

Now

view.Width >= 30 == view.width(>=30)
view.Height <= 100 == view.height(<=100)
view.Botton >= 100 == view.Bottom >= Bottom - 100
view.Right >= 100 == view.Right >= Right - 100
  • Big thanks @lukysnupy for his first contribution on improving our SPM integration 👏