I have a simple view:
var body: some View {
NavigationView {
List(months) { month in
NavigationLink {
MonthView(month: month)
} label: {
VStack(alignment: .center, spacing: 8, content: {
Text("abc")
Text("abcdef")
Text("a")
})
}
.listRowBackground(
Color(uiColor: mode.darkUnderlayBackgroundColor)
.clipped()
.cornerRadius(10)
)
}
.navigationTitle(months.first?.descriptiveYear ?? "")
}
}
and result is:
How can I center it in a whole view?