swift-format
brew install swift-formatFormatting 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 days | 102,546 |
|---|---|
| Downloads | 1,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 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 1,883 | 4,498 | 25,101 |
Installs (--HEAD) | 2 | 2 | 24 |
| Installs on Request | 1,883 | 4,498 | 25,101 |
Installs on Request (--HEAD) | 2 | 2 | 24 |
| Build Errors | 10 |