# airbnb/swift

Airbnb's Swift Style Guide

Repository: https://github.com/airbnb/swift
Canonical: https://ross.abutalabs.com/products/airbnb-swift
Homepage: https://swift.airbnb.tech
Language: Markdown
License: MIT
License Family: permissive
Topics: swift, ios, style-guide, styleguide, naming-conventions, swiftlint, swiftformat
Last push: 2026-08-21T18:44:08+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 38, longevity 100
- inputs: {"age_days": 3697, "days_push": 12, "days_rel": 256, "gap_med": 175.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2749, forks 351 (observed 2026-08-28T04:07:17.846886+00:00)

## What it is
Airbnb's open-source Swift style guide, published as a website and Markdown documentation, with an accompanying Swift Package Manager command plugin that lints or autocorrects code using SwiftFormat and SwiftLint. It codifies Airbnb's conventions for formatting, naming, style, file organization, SwiftUI, testing, and performance.

## Use cases
- enforce a consistent Swift code style across an iOS team
- autocorrect Swift formatting in a Swift package with swift package format
- lint Swift code in CI and fail on style violations
- settle style debates during code review with a documented guide
- configure SwiftFormat and SwiftLint rules from a maintained reference
- learn Swift naming and style best practices

## When to choose
- you want a battle-tested, autocorrectable Swift style guide for iOS or Swift package development
- your team wants to reduce style discussions in code review
- you want a single SPM plugin that runs both formatting and linting

## When to avoid
- you need a style guide for a language other than Swift
- you prefer to define all formatting and lint rules from scratch
- you need a general-purpose formatter rather than an opinionated guide

## Facets
- artifact type: learning-resource
- maturity: active
- function: formatter, linter, documentation
- domain: programming-languages, developer-tools, mobile-development, documentation
- platform: cli
- tags: style-guide, swiftlint, swiftformat, code-style, spm-plugin, naming-conventions, swift, ios, macos

## Member repositories
- airbnb/swift (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:17.846886+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-30T08:18:58.204890+00:00, confidence not recorded.
  - readme: https://github.com/airbnb/swift (fetched 2026-08-28T04:07:17.846886+00:00, sha 4ff89d1d2aad)
  - homepage: https://swift.airbnb.tech (fetched 2026-08-29T09:56:55.808246+00:00, sha 825a185423ca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
