I'm attempting to alter the anchor point for what determines the center of a Button. The following code puts the button at the top left corner of the frame.
Button(action: {
print(self.note)
}) {
Text(note)
}
.position(x: 0.0, y: 0.0)
If I use .offset instead, then it will work. I would like it to be centered within it's frame though. Is there a way to change the anchor point?