SwiftFormat for Xcode

Swift code formatter

nicklockwood
 
Open sourceCommand-line tool

Third-party software from public repositories. bestappfor.me does not host it, does not verify it and is not responsible for its use. Download only from the official source and check the license. Terms and disclaimer

Stars
8.9K
GitHub
Health
Solid
7 of 11 checks passed
License
MIT
Open source
Version
0.63.1
14 days ago
Category
Developer tools
Command-line tool
Language
Swift

About

SwiftFormat reformats Swift code so a whole project follows one style. Beyond adjusting white space, it can add or remove implicit self, drop redundant parentheses and fix other departures from standard Swift idioms.

Run it as a command-line tool, from the Editor menu in Xcode through the source editor extension, as an Xcode build phase, or as a Git pre-commit hook. It works on macOS, Linux and Windows, and a config file lets a team agree on its rules.

Highlights

  • Runs from the command line or Xcode's Editor menu
  • Also works as a build phase or Git pre-commit hook
  • Config file to share rules across a team

Who it's for

Good for Swift teams that want a consistent code style without arguing over it in reviews.

This description was written by our editors with automated assistance, not by the developer, and has not been reviewed yet.

Why it is here

  • Code changed 1 days ago
  • New release 14 days ago

Official channels

Official channels only. We never host or repackage downloads.

Homebrew
macOS
0.63.1
brew install --cask swiftformat-for-xcode
Homebrew
macOS, Linux
0.63.1
brew install swiftformat
GitHub release
Linux, Windows, macOS
0.63.1

You might also like

See all