Releases: freshOS/Stevia
Releases · freshOS/Stevia
tvOS Support
Stevia is now supported on tvOS 🎉📺
Built with Xcode 8.3.1
3.1.3 3.1.3
3.1.2
Single Element Equations + less/Greater equations
Equations, Side Alignments & Percentage-based layouts
Equations Support
addConstraint(item: button,
attribute: .centerY,
toItem: avatar,
attribute: .bottom,
constant: -4)Becomes
button.CenterY == avatar.Bottom - 4Examples
label.Width == button.Width * 3
label.Height == (button.Width / 7) + 3
button.Left == image.Right - 20Side Alignments
addConstraint(item: label, attribute: .top, toItem: avatar)Becomes
alignTops(label, avatar)Examples
alignTops(label, avatar, square)
alignBottoms(v1, v2, v3, v4)
alignLefts(button, image)
alignRights(v1, v2)Percentage-Based Layout
addConstraint(item: label, attribute: .top, toItem: superview, attribute: .bottom, constant: 0.05)Becomes
label.top(5%)Examples
label.top(5%)
view.size(30%)
view.width(50%)
label.Top == 5 % TopPrebuilt with Swift 3.0.2
Prebuilt with swift 3.0.2
3.0.1
Swift 3 support
Swift 3 support is here!
Be aware this is the first version so make sure to check your layout thoroughly and report any issue that might pop.