As a C# developer, I have become highly dependent on the automatic formatting in Visual Studio 2008. Specifically, I will use the CTRL + K , D
Swift - https://github.com/nicklockwood/SwiftFormat
It provides Xcode Extension as well as CLI option.