# gsdios/SDAutoLayout

One line of code to implement automatic layout.  一行代码搞定自动布局！支持Cell和Tableview高度自适应，Label和ScrollView内容自适应，致力于做最简单易用的AutoLayout库。The most easy way for autoLayout. Based on runtime.

Repository: https://github.com/gsdios/SDAutoLayout
Canonical: https://ross.abutalabs.com/products/sdautolayout
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2026-05-21T04:45:36+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 83, release rhythm 8, longevity 100
- inputs: {"age_days": 3973, "days_push": 104, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5866, forks 1258 (observed 2026-08-28T04:09:31.772382+00:00)

## What it is
SDAutoLayout is an Objective-C AutoLayout library for iOS that lets developers lay out views with one line of chained method calls. It supports automatic cell and TableView height self-sizing, Label and ScrollView content sizing, and is built on the Objective-C runtime.

## Use cases
- lay out iOS views with minimal code
- auto-size UITableView cell heights
- make labels adapt to their content
- handle ScrollView content sizing
- simplify AutoLayout constraints in Objective-C

## When to choose
- you are building an iOS app in Objective-C and want terse, chainable layout code
- you need table view cells with dynamic self-sizing heights
- you prefer a lightweight runtime-based alternative to NSLayoutConstraint or Masonry

## When to avoid
- you are developing in Swift with SwiftUI or modern constraint DSLs
- you need a layout system actively evolving with the latest iOS APIs
- you target only the newest iOS versions where native layout APIs suffice

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation
- domain: mobile-development, frontend, cross-platform
- platform: -
- tags: autolayout, objective-c, uikit, tableview-self-sizing, cocoapods, ios, mobile, swift

## Member repositories
- gsdios/SDAutoLayout (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:31.772382+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:51:36.967206+00:00, confidence not recorded.
  - readme: https://github.com/gsdios/SDAutoLayout (fetched 2026-08-28T04:09:31.772382+00:00, sha 1a7158ce8cc2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
