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