SwiftFormat for Xcode for Mac — reformat Swift code from Xcode’s Editor menu

SwiftFormat for Xcode is a free Xcode Source Editor extension that reformats Swift code according to rules you choose. It is the app form of SwiftFormat, Nick Lockwood's open-source code formatter.

No ratings yet
Version
0.64.7
License
Free
Requires
macOS 10.14+
Chip
Apple Silicon & Intel
Size
10 MB
Developer
Nick Lockwood
Website
github.com

Last checked: 2026-12-04

Agreeing on a code style is easy; applying it by hand is tedious. SwiftFormat for Xcode puts Nick Lockwood’s SwiftFormat formatter into Xcode’s Editor menu, so one command brings a file into line.

What it does well

  • Formats in place. Reformats the file you are editing, or only the selection, from Xcode’s Editor menu.
  • More than white space. Besides indentation and spacing, rules insert or remove implicit self, drop redundant parentheses and correct other departures from usual Swift style.
  • Rules you choose. The app’s window lists every rule and option, and each can be switched on or off.
  • Shared configuration. Imports and exports the same .swiftformat configuration files that the command-line tool uses.

Who it is for

Swift developers who want consistent formatting inside Xcode without adding a build phase or command-line tools to a project.

Good to know

The settings apply to every project, because an Xcode extension cannot read a project’s own configuration; indent width and tabs or spaces come from Xcode. To enforce a style on every build or commit, use the swiftformat command-line tool from the same project. It is not Apple’s swift-format, a separate formatter.

How to install

  1. Unzip the download if your browser has not done it already.
  2. Drag SwiftFormat for Xcode to Applications.
  3. The first time you open it, macOS asks you to confirm an app downloaded from the internet; click Open.
  4. Follow the instructions in the app’s window, then restart Xcode; SwiftFormat appears in the Editor menu.
Free Download

FAQ

Is SwiftFormat for Xcode free?

Yes. SwiftFormat is open source under the MIT licence, and the Xcode extension app is a free download from the project's GitHub releases.

Why is there no SwiftFormat menu in Xcode?

The SwiftFormat item appears in Xcode's Editor menu only after you have opened the SwiftFormat for Xcode app, followed its on-screen instructions and restarted Xcode. If it is still missing, the project's README links to a troubleshooting thread.

Can SwiftFormat for Xcode read my project's .swiftformat file?

Not by itself. The extension cannot use per-project settings: you import a configuration file through the app's File menu, and import it again when the file changes or you switch projects.

Is it safe?

License: FreeScan on VirusTotalOfficial download link

Apps downloaded outside the App Store make macOS ask for confirmation on first launch. If macOS blocks the app, see our security-warning guide.

Inside the download file

Read from the installer file itself on 2026-12-02 (version 0.64.7). We did not run the app.

File
SwiftFormat.for.Xcode.app.zip
Size
10 MB
Source
github.com
SHA-256
448ceafb4f3fffcc180bb93fef7e447b2b559c63141388090caa71350ba95e31Matches the checksum recorded by Homebrew.
Built for
Apple Silicon and Intel (universal)
Minimum macOS
macOS 10.14 or later
Signed by
Developer ID: Nick Lockwood (team 8VQKF583ED)
Notarized by Apple
Yes

Installer size by version

SwiftFormat for Xcode: size of the installer by version

Version 0.60.0: 9.3 MB. Version 0.64.7: 10.3 MB. Sizes of the installer files in the project's releases on GitHub.

Does it run on your Mac?

The current release is built for Apple Silicon and Intel Macs. It needs macOS 10.14 or later. No reports yet. Tried it? Be the first to say how it went.

macOS 27 26 Tahoe 15 Sequoia 14 Sonoma 13 Ventura 12 Monterey ≤11
Apple Silicon
Intel
  • ✓stated for the current release
  • no such Mac
  • ✓ n✗ nwith a number: reports from Mac users
Tried it on your Mac?

Not sure? Apple menu → About This Mac → "Chip" (M1–M5) or "Processor" (Intel).

Installation & Troubleshooting

How do I open an app that Gatekeeper blocks?

Gatekeeper and quarantine trigger "damaged" or "unidentified developer" warnings. Allow the app with Open Anyway in System Settings → Privacy & Security, or clear the quarantine flag with xattr.

Full guide

What if the app is damaged or the disk image is corrupted?

"App is damaged and can't be opened" comes from quarantine flags; clear them with xattr -cr on the app. A corrupted DMG usually means an interrupted download.

Full guide

For the developer: a compatibility badge for your README

SwiftFormat for Xcode on MacSoftPark

The badge shows the chips and the minimum macOS we read from your installer, and follows new releases by itself. If it is wrong, tell us and we will correct the page.

Markdown

[![SwiftFormat for Xcode on MacSoftPark](https://macsoftpark.net/wp-json/mtc/v1/badge/swiftformat-for-xcode)](https://macsoftpark.net/swiftformat-for-xcode/)

HTML

<a href="https://macsoftpark.net/swiftformat-for-xcode/"><img src="https://macsoftpark.net/wp-json/mtc/v1/badge/swiftformat-for-xcode" alt="SwiftFormat for Xcode on MacSoftPark"></a>

Leave a comment

Comments are reviewed before they appear. Your email address is not published.