Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View

RotatedShape

The Compose SwiftUI form of SwiftUI's RotatedShape.

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

Overview

RotatedShape(shape = Shape.…, angle = Angle.…)

This is the Kotlin form of SwiftUI RotatedShape.init(shape:angle:anchor:): SwiftUI documentation. In Swift it reads:

init(shape: Content, angle: Angle, anchor: UnitPoint = .center)

Topics

Creating a RotatedShape

fun RotatedShape(shape: Shape, angle: Angle, modifier: Modifier = Modifier, anchor: UnitPoint = UnitPoint.center)
SwiftUI RotatedShape.init(shape:angle:anchor:)