A Swift library for writing concise, readable, and maintainable Auto Layout code in iOS/tvOS apps.
Stevia is a Swift library that provides a concise and expressive way to write Auto Layout code for iOS and tvOS applications. It solves the problem of verbose and hard-to-maintain native Auto Layout APIs by offering multiple intuitive syntaxes for defining constraints, reducing code length by up to half while improving readability.
iOS and tvOS developers who prefer code-based UI layout over Interface Builder and want to write more maintainable Auto Layout code.
Developers choose Stevia because it dramatically reduces Auto Layout boilerplate, offers multiple readable syntax options, integrates with live reload for faster iteration, and is part of the trusted freshOS toolset used by top apps.
:leaves: Concise Autolayout code
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers multiple APIs—visual ASCII-art, chainable methods, and equations—that cut Auto Layout code by up to half while improving readability, as demonstrated in the login view example.
Pairs with tools like InjectionForXcode for real-time UI updates without app relaunches, accelerating iteration cycles during development.
Enables centralized styling blocks similar to CSS, separating layout from appearance for better maintainability and cleaner code.
Generates standard NSLayoutConstraints under the hood, ensuring compatibility with existing UIKit ecosystems and debugging tools.
Adds a layer on top of native Auto Layout, which can obscure constraint debugging and introduce minor performance trade-offs for complex layouts.
Built exclusively for UIKit and Auto Layout, making it irrelevant for projects migrating to Apple's declarative SwiftUI framework.
Requires external setup with InjectionForXcode or similar tools for live reload, adding complexity and potential compatibility issues across Xcode versions.