У меня есть 2 горизонтальных стека.

Я бы хотел, чтобы "Нет" и "Один" всегда центрировались следующим образом:

Это то, что я имею до сих пор:
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
HStack(alignment: .AllCenter) {
Text("No")
.alignmentGuide(.AllCenter) { d in d[.center] }
Text("Name")
Text("phone")
}
HStack(alignment: .AllCenter) {
Text("One")
.alignmentGuide(.AllCenter) { d in d[.center] }
Text("Name1")
Text("other1")
Text("Unkonw1")
}
}
}
}
extension VerticalAlignment {
private enum Centerrsz : AlignmentID {
static func defaultValue(in d: ViewDimensions) -> CGFloat {
return d[.center]
}
}
static let AllCenter = VerticalAlignment(Centerrsz.self)
}