MasonryMasonry
Guide
  • Objective-C API
  • Swift API
Examples
Changelog
  • English
  • 简体中文
GitHub
Guide
  • Objective-C API
  • Swift API
Examples
Changelog
  • English
  • 简体中文
GitHub
Masonry

Masonry

Harness the power of Auto Layout with a simplified, chainable and expressive syntax.

Get Started →API Reference

🔗 Chainable DSL

Describe NSLayoutConstraints with a concise, chainable syntax that makes layout code more readable and maintainable.

🍎 Multi-Platform

Supports iOS, macOS, and tvOS with a single codebase. Write once, layout everywhere.

🦅 Swift Native

Ships with a type-safe Swift DSL via the MasonrySwift module, including operator overloads for natural constraint expressions.

📦 Easy Integration

Install via Swift Package Manager, CocoaPods, or Carthage. Privacy Manifest included out of the box.

🔄 Update & Remake

Easily update existing constraints or remake them entirely with dedicated APIs for dynamic layouts.

🐛 Debug Friendly

Automatic source-line tagging in constraint keys makes debugging "Unable to simultaneously satisfy constraints" a breeze.

MIT Licensed | Copyright © Masonry Contributors