# Airbnb Swift Style Guide

> Airbnb's Swift style guide, with a SwiftPM plugin that formats and lints to it

Source: https://talira.ai/catalog/airbnb-swift-style-guide-3arvn83b
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / formatting](https://talira.ai/categories/developer-tools/formatting), [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [languages / swift](https://talira.ai/categories/languages/swift)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [Airbnb](https://talira.ai/orgs/airbnb.md)

The Airbnb Swift Style Guide is Airbnb's set of rules for writing Swift, covering naming, formatting, closures, operators, patterns, file organization, SwiftUI, testing and performance, written so most rules can be autocorrected. It ships as a Swift Package Manager command plugin: add the repository as a package dependency and run swift package format to reformat the package with [SwiftFormat](https://talira.ai/catalog/swiftformat-bhqc4a74.md) and check it with [SwiftLint](https://talira.ai/catalog/swiftlint-9xkk742n.md) using the guide's configuration, or swift package format --lint to only report failures, which exit non-zero for CI. It also has a script for the matching Xcode settings and an AI skill that summarizes the practices autocorrect can't apply.

## Links

- Website: https://swift.airbnb.tech
- GitHub: https://github.com/airbnb/swift

## Problems it solves

- adopt a consistent Swift code style across an iOS team without arguing about it in code review
- autoformat and lint a Swift package with one command in CI
- give a coding agent Swift style rules to follow

## Features

- Swift style rules for naming, formatting, patterns, SwiftUI and testing
- swift package format command plugin running SwiftFormat and SwiftLint
- lint-only mode with a non-zero exit code for CI
- script for matching Xcode settings
- AI skill with the practices autocorrect can't apply

## Trust

Overall: 0.53 out of 1.
Signals: maintenance 0.69, adoption 0.69, momentum 0.41, community 0.68, backing 0.30, extensibility 0.00.

- last commit 9 days ago
- 14 commits in the last 90 days
- latest release 1.2.0 11 months ago
- 2.8k GitHub stars
- 50 contributors
- backed by Airbnb

## Related

- Works with [SwiftFormat](https://talira.ai/catalog/swiftformat-bhqc4a74.md)
- Works with [SwiftLint](https://talira.ai/catalog/swiftlint-9xkk742n.md)

## Alternatives

- [SwiftFormat](https://talira.ai/catalog/swiftformat-bhqc4a74.md): A command-line tool and Xcode extension for formatting Swift code
- [Standard Ruby](https://talira.ai/catalog/standard-ruby-zphjehj1.md): Unconfigurable Ruby linter and formatter built on RuboCop
- [Ormolu](https://talira.ai/catalog/ormolu-6ed3km1p.md): A formatter for Haskell source code

## Sources

[^1]: https://github.com/airbnb/swift/blob/master/LICENSE.md (checked 28 Nov 2026)
