# johnlui/AutoLayout

Auto Layout 秘境

Repository: https://github.com/johnlui/AutoLayout
Canonical: https://ross.abutalabs.com/products/autolayout
Homepage: https://lvwenhan.com/sort/autolayout-club
Language: Swift
License: MIT
License Family: permissive
Topics: autolayout, ios, swift
Last push: 2016-06-27T18:05:03+00:00

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

## Adoption (not part of the score)
Stars 1207, forks 185 (observed 2026-08-28T04:03:59.523938+00:00)

## What it is
A companion code repository for the Chinese 'Auto Layout 使用心得' (Auto Layout Tips) blog article series and a 2015 offline talk, containing sample Xcode projects demonstrating iOS Auto Layout techniques. It includes demos like equal-width splitting, self-sizing table view cells, drag-bounce animations, and pull-to-refresh animations.

## Use cases
- learn iOS Auto Layout from worked examples
- see how to compute UITableViewCell height from content with Auto Layout
- recreate famous page layouts using Auto Layout
- implement drag-bounce animation with Auto Layout in 22 lines
- build a custom pull-to-refresh animation
- understand when frames are valid after using Auto Layout

## When to choose
- you are learning Auto Layout with Swift and Storyboards and want runnable example projects
- you want to follow the accompanying Chinese blog series step by step
- you need reference implementations of self-sizing cells or Auto Layout animations

## When to avoid
- you need a maintained library or production-ready component - the repo targets Xcode 7.3 / OS X 10.11 and was last released in 2016
- you use SwiftUI or modern constraint frameworks like SnapKit and want current best practices
- you need documentation in English

## Facets
- artifact type: learning-resource
- maturity: abandoned
- function: ui-components, animation, developer-tools
- domain: mobile-development, tutorials, apple-ecosystem
- platform: -
- tags: autolayout, uikit, tutorial-code, sample-projects, swift, ios

## Member repositories
- johnlui/AutoLayout (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:59.523938+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-30T06:18:59.099815+00:00, confidence not recorded.
  - readme: https://github.com/johnlui/AutoLayout (fetched 2026-08-28T04:03:59.523938+00:00, sha 953c252a6328)
  - homepage: https://lvwenhan.com/sort/autolayout-club (fetched 2026-08-29T12:26:42.972123+00:00, sha 684329f7e0e4)
  - site_page: http://lvwenhan.com/about_me (fetched 2026-08-29T12:26:42.974467+00:00, sha 7ac67506a708)
- Data as of 2026-08-30T08:39:29.467469+00:00.
