# layoutBox/FlexLayout

FlexLayout adds a nice Swift interface to the highly optimized facebook/yoga flexbox implementation. Concise, intuitive & chainable syntax.

Repository: https://github.com/layoutBox/FlexLayout
Canonical: https://ross.abutalabs.com/products/flexlayout
Language: Swift
License: MIT
License Family: permissive
Topics: swift, ios, ios-swift, layout, layout-engine, flexbox, flex-layout, flexbox-container, css-flexbox, flex-container, flexbox-layout, yoga, flex-items, ios-lib, ios-ui, swift-3, swift-framework, flexbox-properties
Last push: 2026-08-08T10:30:35+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 38, longevity 100
- inputs: {"age_days": 3362, "days_push": 25, "days_rel": 256, "gap_med": 99.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2132, forks 234 (observed 2026-08-28T04:06:17.229323+00:00)

## What it is
FlexLayout is a Swift library providing a concise, chainable interface over Facebook's Yoga flexbox layout engine for iOS UI development. It serves as a more versatile and performant alternative to UIStackView for building native iOS layouts.

## Use cases
- build iOS layouts with flexbox instead of Auto Layout
- replace UIStackView with a faster, more flexible layout system
- create responsive UIKit interfaces with chainable Swift syntax
- define flex containers and items with margins, paddings, and sizing rules
- use CSS flexbox properties in native iOS apps
- combine with PinLayout for absolute positioning layouts

## When to choose
- you're building UIKit-based iOS apps and want flexbox-style layout
- UIStackView is too limiting or slow for your layout needs
- you want a concise, chainable Swift API over the Yoga engine
- you're familiar with CSS flexbox and want the same model in iOS

## When to avoid
- you're using SwiftUI, which has its own layout system
- you need layouts for Android or cross-platform without Yoga directly
- your project targets iOS versions below 13.0
- you prefer Auto Layout constraints or Interface Builder workflows

## Facets
- artifact type: library
- maturity: active
- function: ui-components, graphics
- domain: mobile-development, frontend, cross-platform
- platform: -
- tags: flexbox, yoga, layout-engine, uikit, chainable-syntax, cocoapods, ios, swift, mobile

## Member repositories
- layoutBox/FlexLayout (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:17.229323+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:52:05.081100+00:00, confidence not recorded.
  - readme: https://github.com/layoutBox/FlexLayout (fetched 2026-08-28T04:06:17.229323+00:00, sha c082132f0b42)
- Data as of 2026-08-30T08:39:29.467469+00:00.
