SwiftFormat for Xcode
An Xcode source editor extension that reformats Swift code using SwiftFormat's configurable rules.
MIT · Free download · Downloads from github.com
- License
- MIT
- Open source
- 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
- Tags
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
- github.com/nicklockwood/SwiftFormat
- github.com/nicklockwood/SwiftFormat/blob/main/LICENSE.md
- github.com/nicklockwood/SwiftFormat/releases
- icon.png: Nick Lockwood and SwiftFormat contributors. MIT; upstream project asset, trademarks retained.
License and artwork notices
For the Developer
Link to this page from your README with a badge.
[](https://openmacapps.com/apps/swiftformat-for-xcode/)