In the following code I'm trying to produce a layout that centers the button text, while having an image on the right hand side. Currently the text is offset by the width of the image rather than being centered (I've added a . in a label so that you can see its not centred. I'd expect the . to be above the B in the buttons text).
struct ContentView: View {
var body: some View {
VStack {
Text(".") // Center point
Button(action: {}, label: {
HStack {
Spacer()
Text("ABC")
Spacer()
Image(systemName: "person.circle.fill")
}
})
}
}
}


