swiftformat

Install command:
brew install swiftformat

Formatting tool for reformatting Swift code

https://github.com/nicklockwood/SwiftFormat

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/swiftformat.json

Formula code: swiftformat.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 ✅ 0.64.7
head ⚡️ HEAD

Uses from macOS: swift (build)

Binaries: swiftformat

GitHub Packages downloads:

Last 30 days112,912
Downloads4,663,644
Analytics install events (30 days)13,747
Downloads / install events (30 days)8.2×

Source: GitHub Packages, fetched 2026-11-20T00:53:44Z. Analytics dates: 2026-10-21 to 2026-11-20. 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
Installs13,73127,59293,845
Installs (--HEAD)1632116
Installs on Request13,72227,57593,640
Installs on Request (--HEAD)1632116
Build Errors8