Releases: freshOS/Stevia
Xcode 10 & Swift 4.2
- Migrates to Swift 4.2 π
Adds Support for baselines + bug fix
- Adds support for baselines, kudos to @bellebethcooper for bringing this up π
align(lastBaselines: label, label2, label3)
label.FirstBaseline == label.LastBaseline
- Fixes #90 Thanks @leidi0129 for spotting the issue π
Adds centerXConstraint & centerYConstraint
This release adds centerXConstraint
& centerYConstraint
helpers.
Thanks to @Shadester for pointing this out π
Xcode 9.3 & Swift 4.1
Supports Xcode 9.3 & Swift 4.1 π
"==" operator now supports different view hierarchies!
1 - Different view hierarchies
Before the ==
wasn't working if views weren't on the same Z-index in the view hierarchy.
It was blind taking the first argument's superview.
Now the ==
operator is smart enough to grab the closest common ancestor π€
2 - Reflexivity
The way it was before, the ==
operator wasn't reflexive.
Meaning
view.Width == contentView.Width
contentView.Width == view.Width
were not generating the same constraint behind the hood.
Mathematically speaking this was quite misleading.
Thanks to fix we can write interchageably :
avatar.Top == photo.Top + 10
photo.Top + 10 == avatar.Top
3- Re-opening Layout([array]) overload
Some needed it for dynamic layout so it's back :)
UILayoutSupport & UILayoutGuide π
UILayoutSupport & UILayoutGuide are now supported in Equation base api !
It's time to clean the iPhone X support code :
button.bottomAnchor.constraint(equalTo: bottomLayoutGuide.topAnchor).isActive = true
into
button.Bottom == bottomLayoutGuide.Top
Happy coding π
Swift4 and xcode9
Migrates to swift 4 \o/
Sizeable Orphan views + getters
tvOS Support
Stevia is now supported on tvOS ππΊ
Built with Xcode 8.3.1
3.1.3 3.1.3