SwiftFormat for Xcode
Nick Lockwood · An Xcode source editor extension for reformatting Swift code from the Editor menu.
brew install --cask swiftformat-for-xcode- 30-day installs
- 323
- #528 in App
- 1-year installs
- 2.5K
- Last 365 days
- Latest version
- 0.64.7
- Download size
- 10MB
- zip
- Release cadence
- Weekly
- 6 releases in 30 days
About
SwiftFormat for Xcode is a macOS app that provides a source editor extension for reformatting Swift code in Xcode. After launching the app and restarting Xcode, you can invoke SwiftFormat from Xcode’s Editor menu.
The extension applies SwiftFormat’s code-formatting rules, which can adjust whitespace and make other code-style changes, such as handling implicit self and redundant parentheses. Its formatting rules and options are configured in the host app. You can import or export configurations, but settings cannot be overridden per project; when switching projects, import the configuration you want to use. Changes to an imported . file must also be re-imported manually.
To install, run brew install --cask swiftformat-for-xcode, open SwiftFormat for Xcode from Applications, follow its on-screen instructions, and restart Xcode. This cask installs the Xcode extension app, not the separate swiftformat command-line package.
At a glance
- Price
- Free
- Chip
- Apple silicon · Intel
- Auto-updates
- No
- Repository
- Open source · MIT · Updated 1 day ago★9K
- Developer
- Nick Lockwood
- Homebrew
- Available; updated by Homebrew
- Also known as
- swiftformat-for-xcode
- Homepage
- github.com/nicklockwood/SwiftFormat
- Token
- swiftformat-for-xcode
Checked
What’s new in 0.64.7
New · OpenNavo editorial
SwiftFormat for Xcode 0.64.7 adds spelling options and fixes rules that crashed or rewrote Swift incorrectly.
How to install SwiftFormat for Xcode on Mac
Homebrew installs the app in your Applications folder.
Install without Homebrew
Download the same file Homebrew uses: Install Details
Uninstall SwiftFormat for Xcode and optional data cleanup
brew uninstall --cask swiftformat-for-xcodeA regular uninstall removes the app and keeps its settings and caches.
Deep clean (optional)
brew uninstall --zap --cask swiftformat-for-xcode--zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap.
Questions about SwiftFormat for Xcode
Is SwiftFormat for Xcode safe?
SwiftFormat for Xcode is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from github.com against its SHA-256 checksum. It was installed 323 times through Homebrew in the last 30 days.
Is SwiftFormat for Xcode free?
Yes, SwiftFormat for Xcode is free to use. Source: raw.githubusercontent.com/nicklockwood/SwiftFormat/HEAD/README.md, checked Oct 17, 2026.
Is SwiftFormat for Xcode open source?
SwiftFormat for Xcode’s source code is public on GitHub (nicklockwood/SwiftFormat) under the MIT license.
How do I completely uninstall SwiftFormat for Xcode on a Mac?
Run brew uninstall --cask swiftformat-for-xcode. To delete its settings and caches as well, run brew uninstall --zap --cask swiftformat-for-xcode. --zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap. That also deletes 5 files and folders, including ~/.
Does SwiftFormat for Xcode run on Apple silicon (M1 and later) Macs?
Homebrew installs it on both Apple silicon and Intel Macs, from the same download.
Where does SwiftFormat for Xcode store its settings and data?
Its data is in ~/ and ~/. These locations come from Homebrew’s clean-up list.
What is the latest version of SwiftFormat for Xcode?
The latest version is 0.64.7, added to Homebrew on Nov 14, 2026. Run brew upgrade --cask swiftformat-for-xcode to update it.
Similar Apps
- GitHub Copilot CLI prereleaseUse GitHub Copilot from a terminal to ask questions, work on code, and interact with GitHub.
- AionUiAn open-source desktop workspace for AI agents, with built-in tools, multiple agent sessions, configurable model providers and remote WebUI access.
- SEGGER J-Link Command Line ToolsSoftware, manuals, and firmware updates for SEGGER J-Link and J-Trace debug probes, including command-line target inspection and flash programming tools.
- Expo OrbitA menu bar app for launching app builds and managing simulators, with support for local files, EAS builds, and Snack projects.