Parameters
The rotation configuration. Can be a number of degrees or an object for detailed control.
Rotates this view by the specified angle.
.rotationEffect(rotation: { degrees: number, anchor?: UnitPoint } | number): Component;
Text("Rotated text")
.rotationEffect(45)
Rectangle()
.fill(Color("green"))
.rotationEffect({ degrees: 90, anchor: "topLeading" })
Image("arrow.png")
.rotationEffect(180)