System & Utilities

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.

Things to watch:

8,957 GitHub stars · 5.2M downloads · 152 contributors · OpenSSF Scorecard 3.8/10.

Download SwiftFormat for Xcode

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

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).