SwiftUI: How to make a Rectangle rotate around its own center in a ZStack?
I’m working with SwiftUI and I have a Rectangle inside a ZStack that I want to rotate. However, the rotation is happening around the center of the entire ZStack, not the center of the Rectangle itself. I want the rectangle to rotate around its own center.