Where to go for highest quality opinionated swift formatting tool (that works well with xcode)

You could do this by placing ".swift-format" file near the project file.

You could grab whatever is used by default with

xcrun swift-format dump-configuration > ~/Desktop/.swift-format

change it according to your preferences and move to the target location.

Note that dot prefixed files are invisible in Finder by default.

2 Likes