I'm confused how to consistently format Swift code

Have you tried using a configuration file

2 Likes