A cross-platform Objective-C library providing a simple, powerful API for iOS and macOS Auto Layout, compatible with Swift.
PureLayout is an open-source library that provides a simplified, high-level API for Apple's Auto Layout system on iOS and macOS. It solves the problem of writing verbose and tedious Auto Layout code by offering concise methods that automatically create and activate constraints, making UI layout programming faster and more readable.
iOS and macOS developers who build user interfaces programmatically and want a cleaner, more maintainable way to use Auto Layout without relying on Interface Builder or verbose native APIs.
Developers choose PureLayout because it offers a comprehensive, type-safe, and backwards-compatible API that feels native to Cocoa, works across both Objective-C and Swift, and significantly reduces the boilerplate associated with manual constraint creation.
The ultimate API for iOS & OS X Auto Layout — impressively simple, immensely powerful. Objective-C and Swift compatible.
Methods like `autoPinEdge` and `autoCenterInSuperview` replace verbose native Auto Layout code, making layout programming more readable and maintainable, as shown in the Swift sample code comparisons.
Works on both iOS and macOS with a single codebase, supporting Objective-C and Swift, which is emphasized in the README for shared project development.
Supports iOS 6.0+ and macOS 10.7+, ensuring it can be used in legacy projects while still leveraging Auto Layout features, as noted in the compatibility section.
Constraints are automatically activated upon creation, reducing boilerplate code and minimizing manual installation errors, a key feature highlighted in the API overview.
Compared to libraries like SnapKit or Cartography, PureLayout's API is more verbose, as admitted in the README's 'PureLayout vs. the rest' section, which may deter developers seeking minimal code.
Being an Objective-C library, it can feel less idiomatic in pure Swift projects, especially with Swift's evolving syntax and features like SwiftUI, limiting seamless integration.
PureLayout focuses on constraint creation but doesn't provide direct methods for animating layout changes, requiring developers to write additional native code for dynamic UI updates.
A Swift Autolayout DSL for iOS & OS X
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
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.