Skip to content
No new version for more than 90 days, so OpenNavo has paused recommending and installing it. Homebrew still offers this app.

X-SwiftFormat

Rui Aureliano · An Xcode source editor extension for formatting Swift code, with an in-app preview and exportable configuration.

CaskDeveloper Tools 776

No new version for more than 90 days, so OpenNavo has paused recommending and installing it. Homebrew still offers this app.

Install command
brew install --cask x-swiftformat
30-day installs
2
1-year installs
41
Last 365 days
Latest version
2.1
Download size
7.0MB
zip
Release cadence
Irregular
0 releases in 30 days

About

X-SwiftFormat is a macOS app that provides an Xcode source editor extension for formatting Swift code. It lets you preview formatting in the app and export a .swift-format configuration file for later use.

  • Adds a Format Swift Code command to Xcode’s Editor menu after the extension is enabled.
  • Offers an in-app preview of the formatting operation.
  • Exports a .swift-format configuration file.
  • Supports assigning a keyboard shortcut to the Xcode command through macOS App Shortcuts.

Install with brew install --cask x-swiftformat. Open X-SwiftFormat once to activate it, then enable it in System Settings under Privacy & Security → Extensions → Xcode Source Editor. In Xcode, run Format Swift Code from the Editor menu. A shortcut can be configured in macOS Keyboard Shortcuts → App Shortcuts, selecting Xcode and using the command name.

The cask requires macOS 13 or later. The project’s instructions separately describe installing Apple’s swift-format; that is a separate tool, not the X-SwiftFormat app itself.

Sources: Project instructions · Homebrew cask

At a glance

System
macOS 13 or later
Chip
Apple silicon · Intel
Auto-updates
No
Repository
Open source · MIT · Updated 493 days ago★776May no longer be maintained
Developer
Rui Aureliano
Homebrew
Still offered by Homebrew; paused by OpenNavo
Also known as
x-swiftformat
Homepage
github.com/ruiaureliano/X-SwiftFormat
Token
x-swiftformat

Checked

What’s new in 2.1

New · OpenNavo editorial

  • EvidenceEvidence says Version 2.0.1 (250730), not 2.1.

How to install X-SwiftFormat on Mac

Homebrew installs the app in your Applications folder.

Install without Homebrew

Download the same file Homebrew uses: Install Details

Uninstall X-SwiftFormat and optional data cleanup

Uninstall command
brew uninstall --cask x-swiftformat

A regular uninstall removes the app and keeps its settings and caches.

Deep clean (optional)
Uninstall command
brew uninstall --zap --cask x-swiftformat

--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 X-SwiftFormat

Is X-SwiftFormat safe?

X-SwiftFormat 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 2 times through Homebrew in the last 30 days.

Is X-SwiftFormat open source?

X-SwiftFormat’s source code is public on GitHub (ruiaureliano/x-swiftformat) under the MIT license.

How do I completely uninstall X-SwiftFormat on a Mac?

Run brew uninstall --cask x-swiftformat. To delete its settings and caches as well, run brew uninstall --zap --cask x-swiftformat. --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 3 files and folders, including ~/Library/Containers/com.ruiaureliano.xswiftformat.

Does X-SwiftFormat run on Apple silicon (M1 and later) Macs?

Homebrew installs it on both Apple silicon and Intel Macs, from the same download. It needs macOS 13 or later.

Where does X-SwiftFormat store its settings and data?

Its settings are in ~/Library/Preferences/com.ruiaureliano.xswiftformat.plist. Its data is in ~/Library/Containers/com.ruiaureliano.xswiftformat. These locations come from Homebrew’s clean-up list.

What is the latest version of X-SwiftFormat?

The latest version is 2.1, added to Homebrew on Aug 1, 2025. Run brew upgrade --cask x-swiftformat to update it.

Similar Apps

  • CablesA standalone Electron desktop version of the cables.gl visual programming editor and ops.
  • Eclipse SDKEclipse SDK is the SDK for the Eclipse IDE, packaged as the Eclipse Platform app for macOS.
  • SmartSynchronizeCompare files and directories, edit changes, merge three files, and synchronize directory structures.
  • Chipmunk Log Analyzer & ViewerA macOS desktop tool for inspecting log files and traces, collecting live logs, and searching or charting data.
Browse all apps