Skip to content

Releases: freshOS/Stevia

3.1.2

27 Jan 13:12
Compare
Choose a tag to compare
3.1.2

Single Element Equations + less/Greater equations

23 Jan 17:40
Compare
Choose a tag to compare

Equations, Side Alignments & Percentage-based layouts

21 Jan 11:05
Compare
Choose a tag to compare

Equations Support

addConstraint(item: button,
                      attribute: .centerY,
                      toItem: avatar,
                      attribute: .bottom,
                      constant: -4)

Becomes

button.CenterY == avatar.Bottom - 4

Examples

label.Width == button.Width * 3
label.Height == (button.Width / 7) + 3
button.Left == image.Right - 20

Side 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 % Top

Prebuilt with Swift 3.0.2

08 Jan 19:50
Compare
Choose a tag to compare
Prebuilt with swift 3.0.2

3.0.1

26 Sep 10:44
Compare
Choose a tag to compare
3.0.1

Swift 3 support

17 Sep 10:26
Compare
Choose a tag to compare
Swift 3 support Pre-release
Pre-release

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.