Writing auto-layout code can be tedious and time-consuming, and here is a library called Stevia that aims to provide auto layout with an easily readable and debuggable syntax.
In addition to providing a clean and simple syntax for auto-layout Stevia works with injection for Xcode plugin for live editing.
Here’s a snippet from the readme showing some code used to create a simple layout for a login page:
100,
|-email-| ~ 80,
8,
|-password-| ~ 80,
"",
|login| ~ 80,
0
])
You can find Stevia on Github here.
An interesting new auto-layout library.
Original article: Open Source Swift Library Simplifies Working With Auto-Layout And Provides Live Editing Support
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.