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 | 45,702 |
|---|---|
| Downloads | 1,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 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 2,525 | 5,268 | 24,978 |
Installs (--HEAD) | 0 | 2 | 19 |
| Installs on Request | 2,525 | 5,268 | 24,978 |
Installs on Request (--HEAD) | 0 | 2 | 19 |
| Build Errors | 3 |