Open Source Swift Library Simplifies Working With Auto-Layout And Provides Live Editing Support

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:

layout([
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.

Apple to launch a massive 5.8-inch iPhone with OLED display in 2017-18?

Apple is planning on launching a new iPhone model with a huge 5.8-inch display based on the superior OLED display technology, reports DigiTimes – a Taiwanese publication. Citing its sources…

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]