# layoutBox/PinLayout

Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]

Repository: https://github.com/layoutBox/PinLayout
Canonical: https://ross.abutalabs.com/products/pinlayout
Language: Swift
License: MIT
License Family: permissive
Topics: swift, layout-engine, carthage, cocoapod, chainable-methods, swift-3, swift-library, uiview-extension, ios, ios-swift, ios-lib, layout, rtl, left-language, margin, anchor, ios-ui, swift-framework, language
Last push: 2025-07-23T12:20:32+00:00

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

## Adoption (not part of the score)
Stars 2434, forks 148 (observed 2026-08-28T04:06:51.271971+00:00)

## What it is
PinLayout is a Swift layout library for laying out UIView, NSView, and CALayer without Auto Layout, using concise, chainable, pure-code syntax. It supports iOS, tvOS, and macOS and offers fast, fully controlled frame-based layouting.

## Use cases
- lay out iOS views in Swift without Auto Layout constraints
- replace storyboard constraints with readable chainable layout code
- position views relative to safe area or keyboard
- compute view sizes automatically with sizeToFit
- layout CALayer directly on macOS or iOS
- support right-to-left language layouts

## When to choose
- you want maximum layout performance without constraint solving
- you prefer explicit frame-based layout code over Auto Layout
- you need a lightweight layout DSL for iOS, tvOS, or macOS views

## When to avoid
- your project is heavily invested in Interface Builder and constraint-based Auto Layout
- you need reactive constraint updates that adapt automatically to size-class changes
- you are building for platforms outside Apple's ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, developer-tools
- domain: mobile-development, frontend, cross-platform
- platform: -
- tags: swift, layout, auto-layout-alternative, uiview, calayer, chainable-api, cocoapods, carthage, swift-package-manager, rtl-support, ios, macos

## Member repositories
- layoutBox/PinLayout (main) score 38

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:51.271971+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-30T02:31:08.770731+00:00, confidence not recorded.
  - readme: https://github.com/layoutBox/PinLayout (fetched 2026-08-28T04:06:51.271971+00:00, sha 415fe3069ca5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
