Xcode Autoformat Code

There is no autoformat i Xcode like the one you’ll find i Eclipse. However you can re-indent the code which will realign your code accordingly to the preferences. Editor -> Structure -> Re-Indent or use the shortcut Ctrl + i