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 days45,702
Downloads1,104,683
Analytics install events (30 days)2,525
Downloads / install events (30 days)18.1×

Source: GitHub Packages, fetched 2026-11-22T01:02:29Z. Analytics dates: 2026-10-23 to 2026-11-22. 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
Installs2,5255,26824,978
Installs (--HEAD)0219
Installs on Request2,5255,26824,978
Installs on Request (--HEAD)0219
Build Errors3