I tried formatting the project I'm working on with swift-format (using default configuration with 4-space indentation) and noticed that the following code:
As I understand, this is done according to the rule 5 in the Line Wrapping section of the Swift Style Guide. In my opinion, however, newlines before opening braces are unnecessary in this case and should not be added.
I tried formatting the project I'm working on with
swift-format
(using default configuration with 4-space indentation) and noticed that the following code:is formatted as
As I understand, this is done according to the rule 5 in the Line Wrapping section of the Swift Style Guide. In my opinion, however, newlines before opening braces are unnecessary in this case and should not be added.