# github/swift-style-guide

**Archived** Style guide & coding conventions for Swift projects

Repository: https://github.com/github/swift-style-guide
Canonical: https://ross.abutalabs.com/products/github-swift-style-guide
License: CC0-1.0
License Family: permissive
Archived: true
Last push: 2017-11-08T16:05:41+00:00

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

## Adoption (not part of the score)
Stars 4756, forks 561 (observed 2026-08-28T04:08:58.923395+00:00)

## What it is
A style guide and coding conventions document for Swift projects, originally maintained by GitHub. It covers conventions like whitespace, let-vs-var usage, early returns, and safe optional handling. The repository is archived and no longer maintained.

## Use cases
- swift style guide recommendations
- swift coding conventions for teams
- best practices for swift optionals
- how to write cleaner swift code
- swift code review standards
- team swift formatting rules

## When to choose
- you want a well-regarded baseline Swift style guide to adapt for your team
- you need rationale-backed conventions for optionals, guard statements, and let-vs-var usage

## When to avoid
- you need an actively maintained style guide reflecting modern Swift versions
- you want automated linting rather than a written document
- you need community-updated conventions or a place to submit suggestions

## Facets
- artifact type: learning-resource
- maturity: abandoned
- function: documentation, linter
- domain: programming-languages, developer-tools, tutorials
- platform: -
- tags: swift, style-guide, coding-conventions, archived, code-style, ios, macos

## Member repositories
- github/swift-style-guide (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:58.923395+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-29T18:18:52.949261+00:00, confidence not recorded.
  - readme: https://github.com/github/swift-style-guide (fetched 2026-08-28T04:08:58.923395+00:00, sha d8e15ae8c641)
- Data as of 2026-08-30T08:39:29.467469+00:00.
