# PureLayout/PureLayout

The ultimate API for iOS & OS X Auto Layout — impressively simple, immensely powerful. Objective-C and Swift compatible.

Repository: https://github.com/PureLayout/PureLayout
Canonical: https://ross.abutalabs.com/products/purelayout
Language: Objective-C
License: NOASSERTION
License Family: other
Topics: purelayout, ios, autolayout
Last push: 2023-03-16T21:45:11+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4455, "days_push": 1266, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7596, forks 730 (observed 2026-08-28T04:10:01.912258+00:00)

## What it is
PureLayout is an Objective-C library that extends UIView/NSView, NSArray, and NSLayoutConstraint with a comprehensive, developer-friendly Auto Layout API for iOS and OS X. It works seamlessly in Swift and adds only a thin, performant layer over Apple's Auto Layout system.

## Use cases
- create constraints in code instead of Interface Builder
- simplify Auto Layout boilerplate in iOS apps
- build responsive layouts programmatically in Swift or Objective-C
- pin views to edges and size views with one-liner APIs
- support older iOS versions that still use Auto Layout

## When to choose
- you write Auto Layout constraints in code and want a concise, readable API
- your project mixes Objective-C and Swift
- you need broad backwards compatibility with older iOS/OS X versions
- you want a lightweight library with minimal overhead

## When to avoid
- you build UI exclusively with SwiftUI or Interface Builder / storyboards
- you prefer SnapKit's Swift-native syntax in a pure Swift codebase
- the project targets platforms without UIKit/AppKit Auto Layout

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components
- domain: mobile-development, web-development, cross-platform
- platform: cpp
- tags: autolayout, objective-c, uikit, constraints, cocoapods, ios, macos, swift

## Member repositories
- PureLayout/PureLayout (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:01.912258+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:36:52.106193+00:00, confidence not recorded.
  - readme: https://github.com/PureLayout/PureLayout (fetched 2026-08-28T04:10:01.912258+00:00, sha 69fcb46b4ac8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
