OpenMacApps

SwiftFormat for Xcode

An Xcode source editor extension that reformats Swift code using SwiftFormat's configurable rules.

GetView Source
brew install --cask swiftformat-for-xcode

MIT · Free download · Downloads from github.com

License
MIT
Open source
Category
Developer tools
Source
GitHub
nicklockwood
Verified
2026

About SwiftFormat for Xcode

SwiftFormat for Xcode brings the SwiftFormat code formatter into Xcode's Editor menu. Once the app has been opened and Xcode restarted, you can reformat the current file or a selection, fixing indentation, spacing, braces, redundant syntax and many other style details according to SwiftFormat's rules.

The app itself is where you turn rules on or off and set their options. Those settings apply to every project, since the extension has no per-project overrides; you can export and import configurations from the File menu to switch between them. The same repository also ships the SwiftFormat command-line tool, which is a separate download.

Information

Source code
nicklockwood/SwiftFormat
License
MIT
Website
github.com
Download
github.com
Homebrew
swiftformat-for-xcode
Category
Developer tools
Evidence checked

OpenMacApps links to each project’s official download. Check its release notes for macOS version and Apple silicon support. The verification date records our license and source review, not a security audit.

Sources and image credits

License and artwork notices

Improve this listing

For the Developer

Link to this page from your README with a badge.

Listed on OpenMacApps
[![Listed on OpenMacApps](https://openmacapps.com/badge.svg)](https://openmacapps.com/apps/swiftformat-for-xcode/)
See All You Might Also Like