# X-SwiftFormat

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

> This is the Markdown version of the X-SwiftFormat page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/x-swiftformat>

- **Latest version**: `2.1`
- **Developer**: Rui Aureliano
- **Homepage**: <https://github.com/ruiaureliano/X-SwiftFormat>
- **Categories**: [Developer Tools](https://opennavo.com/categories/developer-tools)
- **Install**: `brew install --cask x-swiftformat`
- **30-day installs**: 2
- **Homebrew**: Still offered by Homebrew; paused by OpenNavo
- **Download URL**: <https://github.com/ruiaureliano/X-SwiftFormat/releases/download/2.1/x-swiftformat_2.1.zip>
- **SHA-256**: `06569a2abac144e1c3b9cee75fec9e3d6f4d70c41d3d55f48aa8bd924cb4cb75`

SHA-256 only checks that the download is complete; it is not a security certification.

## Installation and removal contents

```json
[
  {
    "declaration": {
      "app": [
        "X-SwiftFormat.app"
      ],
      "target": "/Applications/X-SwiftFormat.app"
    },
    "phase": "install",
    "sources": [
      "X-SwiftFormat.app"
    ],
    "target": "/Applications/X-SwiftFormat.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/Library/Caches/com.ruiaureliano.xswiftformat",
            "~/Library/Containers/com.ruiaureliano.xswiftformat",
            "~/Library/Preferences/com.ruiaureliano.xswiftformat.plist"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 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](https://github.com/ruiaureliano/X-SwiftFormat) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/x/x-swiftformat.rb)

## System requirements

- macOS 13 or later · Version: 2.1 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/x/x-swiftformat.rb> · Checked 2026-12-06
  - <https://github.com/ruiaureliano/X-SwiftFormat/releases/download/2.1/x-swiftformat_2.1.zip>
  - SHA-256: `06569a2abac144e1c3b9cee75fec9e3d6f4d70c41d3d55f48aa8bd924cb4cb75`
- macOS 13 or later · Version: 2.1 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/x/x-swiftformat.rb> · Checked 2026-12-06
  - <https://github.com/ruiaureliano/X-SwiftFormat/releases/download/2.1/x-swiftformat_2.1.zip>
  - SHA-256: `06569a2abac144e1c3b9cee75fec9e3d6f4d70c41d3d55f48aa8bd924cb4cb75`

## X-SwiftFormat security facts

Only facts that can be checked, each with its source and date. This is not a safety certification. To check the files you downloaded, scan them on your Mac with OpenNavo.

- <https://github.com/ruiaureliano/x-swiftformat> · Open source: Yes — <https://github.com/ruiaureliano/x-swiftformat> · Checked 2026-11-14

## Uninstall

- `brew uninstall --cask x-swiftformat`

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

### Deep clean (optional)

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

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

- Files and folders: `~/Library/Caches/com.ruiaureliano.xswiftformat` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/x/x-swiftformat.rb> · These entries come from the Homebrew definition, checked 2026-12-06. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Containers/com.ruiaureliano.xswiftformat` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/x/x-swiftformat.rb> · These entries come from the Homebrew definition, checked 2026-12-06. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Preferences/com.ruiaureliano.xswiftformat.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/x/x-swiftformat.rb> · These entries come from the Homebrew definition, checked 2026-12-06. They say what it declares, not what is on your Mac.

## Latest release notes

### 2.1 (2025-07-30)

The supplied release evidence is labeled Version 2.0.1, not 2.1. It mentions Xcode 16 and Swift 6.2.

**Evidence**

- Evidence says Version 2.0.1 (250730), not 2.1.
- It mentions Xcode 16 and Swift 6.2.

## Facts and sources

- <https://opennavo.com/apps/x-swiftformat>
- <https://opennavo.com/apps/x-swiftformat/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/x/x-swiftformat.rb> · Checked 2026-12-06
- <https://formulae.brew.sh/cask/x-swiftformat>
- <https://github.com/ruiaureliano/x-swiftformat> · Checked 2026-11-14
