X-SwiftFormat

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

CaskDeveloper ToolsApple silicon · Intel
From homebrew/cask
30-day installs4#3093 in App
1-year installs50Last 365 days
Latest version2.1Jul 30, 2025 · Jul 30, 2025
Download size7.0MBarm64 / x86_64 · zip
Release cadenceIrregular0 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

New What’s new in 2.1 Jul 30, 2025 · OpenNavo editorial

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

An open-source interface for Homebrew. Installs run through the macOS app or the brew command.

© 2026 OpenNavo