swiftformat
« Back to VersTracker
Description:
Formatting tool for reformatting Swift code
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: swift formatter code-style linting developer-tools
Install: brew install swiftformat
About:
SwiftFormat is a command-line tool and Xcode extension for reformatting Swift code according to a set of configurable rules. It automatically enforces consistent code style, making code easier to read and maintain. The tool integrates into build phases and CI pipelines to ensure code consistency across projects.
Key Features:
  • Highly configurable rule set for custom code style
  • Xcode extension for interactive formatting
  • Automated formatting via build phases or git hooks
  • Supports Swift Package Manager and Homebrew installation
Use Cases:
  • Enforcing consistent code style across a team
  • Automating code cleanup in CI/CD pipelines
  • Preparing legacy codebases for modern Swift standards
Alternatives:
  • SwiftLint – SwiftLint focuses on linting and style enforcement with warnings, while SwiftFormat actively rewrites code to fix formatting issues.
  • Prettier – Prettier is a general-purpose formatter for JavaScript and other web languages, whereas SwiftFormat is specialized for Swift.
Version History
Detected Version Rev Change Commit
Oct 4, 2025 2:15pm 0 VERSION_BUMP 73639939
Sep 24, 2025 5:23pm 0 VERSION_BUMP 3aea4d44
Sep 22, 2025 8:48pm 0 VERSION_BUMP a99739a6
Dec 22, 2024 5:08pm 0 VERSION_BUMP eded3f00
Nov 27, 2024 2:39am 0 VERSION_BUMP cef88a43
Nov 24, 2024 11:20am 0 VERSION_BUMP 851b4c82
Oct 25, 2024 4:23am 1 VERSION_BUMP 4564fbc2
Oct 8, 2024 6:57pm 0 VERSION_BUMP 3557aece