Xcode 8 file indentation: How to set 2 spaces as default configuration?
You have to go to every file and then to Command + A then Ctrl + I which will indent the file with the two spaces. That setting does not touch files already created in the project.
If you want to do this for all projects, you can set this globally in the Text Editing / Indentation preferences: