SnapKit/SnapKit
A Swift Autolayout DSL for iOS & OS X observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 92
- Release rhythm 54
- 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: 4472
- days_rel: 94
- days_push: 51
- n_releases_24m: 1
Adoption not part of the score
20345 stars · 2042 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
SnapKit is a Swift DSL that makes Auto Layout constraint creation simple and expressive on iOS, macOS, and tvOS. It provides a type-safe, chainable syntax for building layout constraints with minimal code.
Use cases
- lay out UIKit views programmatically without Interface Builder
- define Auto Layout constraints with concise readable Swift code
- center and size views relative to their superview
- replace verbose NSLayoutConstraint boilerplate in view controllers
- build responsive iOS layouts in code
When to choose
- you build UIKit views programmatically and want readable constraint code
- you want a mature, widely adopted Swift layout DSL with MIT licensing
- you need type-safe constraints that catch errors at compile time
When to avoid
- you use SwiftUI exclusively and don't need UIKit Auto Layout
- you prefer building all layouts in Interface Builder or storyboards
- your project targets platforms below iOS 14 / macOS 12
Facets
library · maturity stable
ui-components developer-tools mobile-development cross-platform developer-tools autolayout dsl constraints layout cocoapods swift-package-manager uikit ios macos swift mobile
2 sources
- readme: https://github.com/SnapKit/SnapKit · fetched 2026-08-28 · 353e65073603
- homepage: https://snapkit.github.io/SnapKit/ · fetched 2026-08-29 · 1ded41130216
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| SnapKit/SnapKit | main | 80 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem