SwiftUI grid - align center leading

Viewed 38

I have the following column structure defined for a VGrid:

let columns = [
    GridItem(.flexible()),
    GridItem(.flexible(), alignment: .topLeading),
    GridItem(.flexible(), alignment: .topTrailing),
    GridItem(.flexible(), alignment: .topTrailing),
]

However, for the first column, I want to align center vertically, but to the leading edge. There don't appear to be any options to do this (e.g. .centerLeading). Wondering if there is another way around this.

0 Answers
Related