swift-format

Install command:
brew install swift-format

Formatting technology for Swift source code

https://github.com/swiftlang/swift-format

License: Apache-2.0

Development: Pull requests

Formula JSON API: /api/formula/swift-format.json

Formula code: swift-format.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 604.0.0
head ⚡️ HEAD

Uses from macOS: swift (build)

Requires: Xcode >= 14.0 (build)

Binaries: swift-format

GitHub Packages downloads:

Last 30 days102,546
Downloads1,081,981
Analytics install events (30 days)1,885
Downloads / install events (30 days)54.4×

Source: GitHub Packages, fetched 2026-11-02T00:45:06Z. Analytics dates: 2026-10-03 to 2026-11-02. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs1,8834,49825,101
Installs (--HEAD)2224
Installs on Request1,8834,49825,101
Installs on Request (--HEAD)2224
Build Errors10