roberthein/TinyConstraints
Nothing but sugar. 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-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3496
- days_rel: n/a
- days_push: 869
- n_releases_24m: 0
Adoption not part of the score
4082 stars · 195 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
TinyConstraints is a Swift library that provides syntactic sugar over NSLayoutConstraint to make Auto Layout code shorter and more readable. It offers one-line helpers like edgesToSuperview() and center(in:) while remaining fully compatible with standard Auto Layout code.
Use cases
- pin a view to its superview edges with one line of code
- center a view in its superview without verbose anchor code
- stack views together with minimal constraint code
- set constraint priorities and relations concisely
- replace verbose NSLayoutConstraint boilerplate in UIKit apps
- create and store inactive constraints for later activation
When to choose
- you build UIKit iOS apps and want concise, readable Auto Layout code
- you want a lightweight drop-in wrapper fully compatible with existing NSLayoutConstraint code
- you frequently constrain views to their superview or stack views together
When to avoid
- you use SwiftUI instead of UIKit Auto Layout
- you prefer explicit NSLayoutConstraint or third-party frameworks like SnapKit with larger ecosystems
- you need a library under very active development, as updates are infrequent
Facets
library · maturity maintenance
ui-components animation mobile-development developer-tools auto-layout nslayoutconstraint syntactic-sugar uikit constraints ios swift mobile
1 source
- readme: https://github.com/roberthein/TinyConstraints · fetched 2026-08-28 · 497070b2bb6d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| roberthein/TinyConstraints | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="roberthein/TinyConstraints")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem