# SwiftFormat for Xcode

An Xcode source editor extension for reformatting Swift code from the Editor menu.

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

- **Latest version**: `0.64.7`
- **Developer**: Nick Lockwood
- **Homepage**: <https://github.com/nicklockwood/SwiftFormat>
- **Categories**: [Developer Tools](https://opennavo.com/categories/developer-tools)
- **Install**: `brew install --cask swiftformat-for-xcode`
- **30-day installs**: 323
- **Homebrew**: Available; updated by Homebrew
- **Download URL**: <https://github.com/nicklockwood/SwiftFormat/releases/download/0.64.7/SwiftFormat.for.Xcode.app.zip>
- **SHA-256**: `448ceafb4f3fffcc180bb93fef7e447b2b559c63141388090caa71350ba95e31`

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

## Installation and removal contents

```json
[
  {
    "declaration": {
      "app": [
        "SwiftFormat for Xcode.app"
      ],
      "target": "/Applications/SwiftFormat for Xcode.app"
    },
    "phase": "install",
    "sources": [
      "SwiftFormat for Xcode.app"
    ],
    "target": "/Applications/SwiftFormat for Xcode.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/Library/Application Scripts/com.charcoaldesign.SwiftFormat-for-Xcode",
            "~/Library/Application Scripts/com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension",
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.charcoaldesign.swiftformat-for-xcode.sfl*",
            "~/Library/Containers/com.charcoaldesign.SwiftFormat-for-Xcode",
            "~/Library/Group Containers/com.charcoaldesign.SwiftFormat"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

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

[Official project and setup guide](https://github.com/nicklockwood/SwiftFormat)

## System requirements

- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 0.64.7 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb> · Checked 2026-11-22
  - <https://github.com/nicklockwood/SwiftFormat/releases/download/0.64.7/SwiftFormat.for.Xcode.app.zip>
  - SHA-256: `448ceafb4f3fffcc180bb93fef7e447b2b559c63141388090caa71350ba95e31`
- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 0.64.7 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb> · Checked 2026-11-22
  - <https://github.com/nicklockwood/SwiftFormat/releases/download/0.64.7/SwiftFormat.for.Xcode.app.zip>
  - SHA-256: `448ceafb4f3fffcc180bb93fef7e447b2b559c63141388090caa71350ba95e31`

## SwiftFormat for Xcode 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/nicklockwood/SwiftFormat> · Open source: Yes — <https://github.com/nicklockwood/SwiftFormat> · Checked 2026-11-13

## Uninstall

- `brew uninstall --cask swiftformat-for-xcode`

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

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

- Files and folders: `~/Library/Application Scripts/com.charcoaldesign.SwiftFormat-for-Xcode` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Application Scripts/com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.charcoaldesign.swiftformat-for-xcode.sfl*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Containers/com.charcoaldesign.SwiftFormat-for-Xcode` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Group Containers/com.charcoaldesign.SwiftFormat` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.

## Latest release notes

### 0.64.7 (2026-11-14)

SwiftFormat for Xcode 0.64.7 adds spelling options and fixes rules that crashed or rewrote Swift incorrectly.

SwiftFormat for Xcode 0.64.7, released on November 14, 2026, adds spelling options to commonTypos and fixes rules that crashed or changed Swift code incorrectly. Source: https://github.com/nicklockwood/SwiftFormat/releases/tag/0.64.7

- commonTypos gains --prefer-us-spelling and --preserve-iff.
- hoistTry and hoistAwait no longer fail to finish on deep nesting.
- Negative integer shifts no longer crash the tokenizer.
- preferKeyPath no longer emits invalid code inside #expect and #require.
- forWhere no longer changes precedence when joining conditions with &&.
- unusedArguments no longer crashes on lifetime attributes without arguments.

## Facts and sources

- <https://opennavo.com/apps/swiftformat-for-xcode>
- <https://opennavo.com/apps/swiftformat-for-xcode/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb> · Checked 2026-11-22
- <https://formulae.brew.sh/cask/swiftformat-for-xcode>
- <https://github.com/nicklockwood/SwiftFormat> · Checked 2026-11-13
