Rotation
Visually rotates the component
The rotation is only applied during rendering and doesn't affect the components bounding box during layout.
modifier Rotation
import { Rotation, Text } from ui
export var main = Text("Hello, world!") with {
Rotation(Angle(degrees: 45))
}
Constructor
(_ angle)
_ angle: Angle
A positive angle rotates clockwise.
Layout Behavior
None.