SwiftFormat is an open source command line tool from Nick Lockwood that allows you to automatically format Swift code.
SwiftFormat applies a set of formatting rules (which can be turned on or off), and can be added to your build phase for automatic formatting. SwiftFormat was created so that common style rules could be enforced between a team of programmers.
You can find SwiftFormat on Github here.
A nice tool for automatically applying formatting rules to Swift code.