Indentation for SwiftUI

In all the slides, and I think even some live coding examples, we see indentation like

VStack {
    ...
}
.padding()

But for me this indents as

VStack {
    ...
    }
    .padding()

Is this a bug, a setting, or do they manually format it like that?

It’s Xcode’s terrible indentation. They fixed it for the slides. You should file a bug about it.

7 Likes

That's a shame, I was really hoping there was some secret setting for this! This seems like a bug, not a matter of style, or is there any logic to it?

Terms of Service

Privacy Policy

Cookie Policy