SnapKit/Masonry
Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4791
- days_rel: n/a
- days_push: 1238
- n_releases_24m: 0
Adoption not part of the score
18131 stars · 3150 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Masonry is a lightweight Objective-C framework that wraps Apple's Auto Layout NSLayoutConstraints in a chainable, expressive DSL. It simplifies creating constraints in code for iOS and macOS apps, with Swift users directed to its successor SnapKit.
Use cases
- create autolayout constraints in objective-c without verbose nslayoutconstraint code
- lay out uiviews programmatically with a chainable syntax
- pin a view to its superview edges with insets
- replace storyboard constraints with code-based layout
- maintain legacy objective-c ios app layouts
When to choose
- you are writing an Objective-C iOS or macOS app and want concise Auto Layout code
- you are maintaining an existing codebase that already uses Masonry
- you prefer a lightweight DSL over verbose NSLayoutConstraint APIs
When to avoid
- you are writing Swift - use SnapKit instead for better type safety
- your project relies primarily on Interface Builder or SwiftUI for layout
- you need a library with active feature development rather than maintenance
Facets
library · maturity maintenance
ui-components developer-tools mobile-development cross-platform developer-tools auto-layout objective-c dsl constraints cocoapods ios macos swift
1 source
- readme: https://github.com/SnapKit/Masonry · fetched 2026-08-28 · bc647bba6cb3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| SnapKit/Masonry | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem