🍺 BREW Explorer

← all casks

SwiftFormat for Xcode

brew install --cask swiftformat-for-xcode v0.61.1

Xcode extension that automatically reformats Swift code to a consistent style.

Why you might care

Enforces consistent code formatting across a Swift project without manual work. Open-source (MIT) and highly configurable, so your team can define and apply a shared style guide automatically. Integrates directly into Xcode as an extension for on-demand formatting.

Categories

Alternatives

Swiftlint Apple's swift-format
166
30-day installs · #1029
585
90-day · #930
3.6k
365-day · #635
8.8k
★ GitHub stars · updated 2d ago

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "alternatives": [
    "Swiftlint",
    "Apple\u0027s swift-format"
  ],
  "artifacts": [
    {
      "app": [
        "SwiftFormat for Xcode.app"
      ],
      "target": "/Applications/SwiftFormat for Xcode.app"
    },
    {
      "zap": [
        {
          "trash": [
            "~/Library/Application Scripts/com.charcoaldesign.SwiftFormat-for-Xcode",
            "~/Library/Application Scripts/com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension",
            "~/Library/Containers/com.charcoaldesign.SwiftFormat-for-Xcode",
            "~/Library/Group Containers/com.charcoaldesign.SwiftFormat"
          ]
        }
      ]
    }
  ],
  "auto_updates": null,
  "categories": [
    "ide",
    "dev-tools"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Xcode Extension for reformatting Swift code",
  "disable_reason": null,
  "disabled": 0,
  "display_name": "SwiftFormat for Xcode",
  "enrichment_fetched_at": "2026-06-20T22:50:00+00:00",
  "first_seen": "2026-06-20T00:47:34+00:00",
  "full_token": "swiftformat-for-xcode",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-18T23:49:38Z",
  "github_readme_excerpt": "![](EditorExtension/Application/Assets.xcassets/AppIcon.appiconset/icon_256x256.png)\n\n[![PayPal](https://img.shields.io/badge/paypal-donate-blue.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=9ZGWNK5FEZFF6\u0026source=url)\n[![Build](https://github.com/nicklockwood/SwiftFormat/actions/workflows/build.yml/badge.svg)](https://github.com/nicklockwood/SwiftFormat/actions/workflows/build.yml)\n[![Codecov](https://codecov.io/gh/nicklockwood/SwiftFormat/graphs/badge.svg)](https://codecov.io/gh/nicklockwood/SwiftFormat)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnicklockwood%2FSwiftFormat%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/nicklockwood/swiftformat)\n[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)\n[![Mastodon](https://img.shields.io/badge/mastodon-@nicklockwood@mastodon.social-636dff.svg)](https://mastodon.social/@nicklockwood)\n\nTable of Contents\n-----------------\n\n- [What?](#what-is-this)\n- [Why?](#why-would-i-want-to-do-that)\n- [How?](#how-do-i-install-it)\n    - [Command-line tool](#command-line-tool)\n    - [Xcode source editor extension](#xcode-source-editor-extension)\n    - [Xcode build phase](#xcode-build-phase)\n    - [Swift Package Manager plugin](#swift-package-manager-plugin)\n    - [Via Applescript](#via-applescript)\n    - [VSCode plugin](#vscode-plugin)\n    - [Sublime Text plugin](#sublime-text-plugin)\n    - [Nova plugin](nova-plugin)\n    - [Git pre-commit hook](#git-pre-commit-hook)\n    - [GitHub Actions](#github-actions)\n    - [On CI using Danger](#on-ci-using-danger)\n    - [Bazel build](#bazel-build)\n    - [Docker](#docker)\n    - [Prerelease Builds](#prerelease-builds)\n- [Configuration](#configuration)\n    - [Options](#options)\n    - [Rules](#rules)\n    - [Swift version](#swift-version)\n    - [Config file](#config-file)\n    - [Globs](#globs)\n    - [Linting](#linting)\n    - [Error codes](#error-codes)\n    -",
  "github_repo": "nicklockwood/SwiftFormat",
  "github_stars": 8834,
  "github_topics": [],
  "homepage": "https://github.com/nicklockwood/SwiftFormat",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 166,
  "installs_365d": 3646,
  "installs_90d": 585,
  "last_seen": "2026-06-20T00:47:34+00:00",
  "llm_generated_at": "2026-06-20T23:06:34+00:00",
  "llm_model": "claude-haiku-4-5",
  "names": [
    "SwiftFormat for Xcode"
  ],
  "one_liner": "Xcode extension that automatically reformats Swift code to a consistent style.",
  "rank_30d": 1029,
  "rank_365d": 635,
  "rank_90d": 930,
  "raw_hash": "3d53a5b5e1e69e89",
  "ruby_source_path": "Casks/s/swiftformat-for-xcode.rb",
  "tap": "homebrew/cask",
  "token": "swiftformat-for-xcode",
  "version": "0.61.1",
  "why_use_this": "Enforces consistent code formatting across a Swift project without manual work. Open-source (MIT) and highly configurable, so your team can define and apply a shared style guide automatically. Integrates directly into Xcode as an extension for on-demand formatting."
}