SwiftFormat for Xcode
A command-line tool and Xcode Extension for formatting Swift code
By nicklockwood. Free and open source for Windows, macOS, Linux. Latest version 0.64.7, released 2026-11-14.
Is SwiftFormat for Xcode safe?
Trust score 74/100: Good. A solid project with a few gaps. Download from the official release and keep it updated.
- Established community: 8,957 GitHub stars
- 152 people have contributed code
- Actively developed: code changed in the last 30 days
- Downloads come straight from the project's own GitHub releases
- Around since 2016
- Listed in Homebrew, which reviews submissions
Things to watch:
- Weak automated security checks (OpenSSF Scorecard 3.8/10)
- No checksums or signatures published: you can't verify the download
8,957 GitHub stars · 5.2M downloads · 152 contributors · OpenSSF Scorecard 3.8/10.
Download SwiftFormat for Xcode
- SwiftFormat.amd64.msi (Windows, 16.9 MB)
- SwiftFormat.arm64.msi (Windows, 16.6 MB)
- swiftformat_linux.zip (Linux, 23.9 MB)
- swiftformat_linux_aarch64.zip (Linux, 22.9 MB)
brew install --cask swiftformat-for-xcode
Downloads come straight from github.com/nicklockwood/SwiftFormat.
About SwiftFormat for Xcode
• What? • Why? • How? • Command-line tool • Xcode source editor extension • Xcode build phase • Swift Package Manager plugin • Via Applescript • VSCode plugin • Sublime Text plugin • Nova plugin • Git pre-commit hook • GitHub Actions • On CI using Danger • Bazel build • Docker • Prerelease Builds • Configuration • Options • Rules • Swift version • Config file • Globs • Linting • Error codes • Cache • Snapshot • File headers • Markdown formatting • FAQ • Known issues • Tip Jar • Credits
SwiftFormat is a code library and command-line tool for reformatting Swift code on macOS, Linux or Windows.
SwiftFormat goes above and beyond what you might expect from a code formatter. In addition to adjusting white space it can insert or remove implicit self, remove redundant parentheses, and correct many other deviations from the standard Swift idioms.
Many programmers have a preferred style for formatting their code, and others seem entirely blind to the existing formatting conventions of a project (to the enragement of their colleagues).
Similar apps
- scrcpy (v5.0.1): Display and control your Android device (High trust, 81/100)
- Tauri: Build smaller, faster, and more secure desktop and mobile applications with a web frontend. (High trust, 75/100)
- Neovim: Vim-fork focused on extensibility and usability (Good, 71/100)
- Ghidra: Ghidra is a software reverse engineering (SRE) framework (Good, 66/100)
- Zed: Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter. (Good, 73/100)
- Bitcoin: Bitcoin Core integration/staging tree (Good, 66/100)
Questions
Is SwiftFormat for Xcode safe to download?
SwiftFormat for Xcode has an OpenShelf trust score of 74/100 (Good). A solid project with a few gaps. Download from the official release and keep it updated. Main thing to watch: Weak automated security checks (OpenSSF Scorecard 3.8/10).
Is SwiftFormat for Xcode free?
Yes. SwiftFormat for Xcode is free and open source under the MIT license. The source code is public at github.com/nicklockwood/SwiftFormat.
Does SwiftFormat for Xcode work on Windows, macOS and Linux?
SwiftFormat for Xcode is available for Windows, macOS, Linux. Ready-made downloads exist for Windows, Linux.
How do I install SwiftFormat for Xcode?
Download the official file from the project's GitHub releases (for example SwiftFormat.amd64.msi) and run it. Or install it with: brew install --cask swiftformat-for-xcode.
What are alternatives to SwiftFormat for Xcode?
Similar open-source apps: scrcpy (v5.0.1) (trust 81/100), Tauri (trust 75/100), Neovim (trust 71/100), Ghidra (trust 66/100).