A Swift Auto Layout DSL for iOS and macOS that makes programmatic UI layout simple and expressive.
SnapKit is a Swift library that provides a domain-specific language (DSL) for Auto Layout, allowing developers to define UI constraints programmatically with a clean, readable syntax. It simplifies the process of creating adaptive layouts for iOS and macOS applications, reducing the boilerplate code typically associated with Auto Layout.
iOS and macOS developers who build user interfaces programmatically and want a more expressive, type-safe alternative to traditional Auto Layout APIs.
Developers choose SnapKit for its concise, chainable syntax that makes Auto Layout constraints easier to write and maintain, while leveraging Swift's type safety to catch errors early in the development process.
A Swift Autolayout DSL for iOS & OS X
Provides a chainable DSL that reads like natural language, dramatically reducing Auto Layout boilerplate code, as shown in the quick start example.
Leverages Swift's type system to catch constraint errors at compile time, preventing common runtime crashes associated with traditional Auto Layout.
Works seamlessly across iOS, macOS, and tvOS, ensuring uniform layout behavior for Apple ecosystem apps, per the platform support badges.
Supports testing layouts directly in Xcode Playgrounds, speeding up UI iteration, though it requires building the framework first as noted in the README.
Major updates (e.g., 3.0 to 4.0) require migration efforts, as indicated by the migration guides, which can disrupt existing codebases.
Relies on dependency managers like CocoaPods or Carthage for setup, adding steps compared to using native Auto Layout APIs directly.
Exclusively for Swift projects, making it unsuitable for Objective-C codebases or teams using multiple programming languages.
Yoga is an embeddable layout engine targeting web standards.
Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout
Template auto layout cell for automatically UITableViewCell height calculating
The ultimate API for iOS & OS X Auto Layout — impressively simple, immensely powerful. Objective-C and Swift compatible.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.