Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as solved with 4 replies, 0 views
Following is a workaround which forces the center alignment to the text in the button of toolbar.
However, I still need to know if this is a bug.
Button(action: {print("confirm.")}) {
Text("confirm")
.alignmentGuide(HorizontalAlignment.center, computeValue: { d in
d[HorizontalAlignment.center]
})
}