Someone who understands SwiftUI, please help me why this works (centers max width):

Section{…}.frame(maxWidth: 500)

.frame(maxWidth: .infinity, alignment: .center)

But this doesn’t work (left aligns max width):

Section{…}.frame(maxWidth: 500, alignment: .center)

Reply to this note

Please Login to reply.

Discussion

No replies yet.