Stevia CocoaPods

:leaves: Elegant Autolayout DSL for iOS

Stevia

Stevia

Language: Swift2 and 3 Platform: iOS 8+ Carthage compatible CocoaPods compatible Build Status Join the chat at https://gitter.im/s4cha/Stevia License: MIT [Release version]()

Reason - Example - Live Reload - Installation - Documentation

Visual Layout Api

layout(
    100,
    |-email-| ~ 80,
    8,
    |-password-forgot-| ~ 80,
    >=20,
    |login| ~ 80,
    0
)

Chainable Api

email.top(100).left(8).right(8).width(200).height(44)
alignHorizontally(password, forgot)
image.fillContainer()
button.centerInContainer().size(50%)
equalWidths(email, password)
image.width(>=80)

Equation-Based Api

email.Top == 100
password.CenterY == forgot.CenterY
login.Top >= password.Bottom + 20
login.Width == 75 % Width

All Generate native NSLayoutConstraints

Related Repositories

Stevia

Stevia

:leaves: Elegant Autolayout DSL for iOS ...

Stevia

Stevia

:leaves: Elegant Autolayout DSL for iOS ...


Top Contributors

s4cha YannickDot 0x7fffffff tmcw waternotwords orta PhilipTrauner pjambet sai-prasanna gitter-badger szotp liberty4me

Releases

-   v1.1.0 zip tar
-   v.1.0 zip tar
-   v0.3 zip tar
-   v0.2.1 zip tar
-   v0.2 zip tar
-   v0.1 zip tar
-   3.0.1 zip tar
-   3.0.0 zip tar
-   2.3.0 zip tar
-   2.2.1 zip tar
-   2.2.0 zip tar
-   2.1.3 zip tar
-   2.1.2 zip tar
-   2.1.1 zip tar
-   2.1.0 zip tar
-   2.0.1 zip tar
-   2.0.0 zip tar
-   1.1.1 zip tar