Get Updates By E-mail 

Article Written By:
Johann Dowa

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

  •  
  •  
  •  
  • 1
  •  

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.


  •  
  •  
  •  
  • 1
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments