Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

rotationEffect(_:)

Rotates the rendered view without changing its layout.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.rotationEffect(angle: Angle, anchor: UnitPoint = UnitPoint.center): Modifier

Overview

Modifier.rotationEffect(angle = Angle.…)

This is the Kotlin form of SwiftUI View.rotationEffect(_:anchor:): SwiftUI documentation. In Swift it reads:

nonisolated func rotationEffect(_ angle: Angle, anchor: UnitPoint = .center) -> some View

Topics

Overloads

fun Modifier.rotationEffect(angle: Angle, anchor: UnitPoint = UnitPoint.center): Modifier
SwiftUI View.rotationEffect(_:anchor:)