Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View

ScaledShape

The Compose SwiftUI form of SwiftUI's ScaledShape.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun ScaledShape(shape: Shape, scale: CGSize, modifier: Modifier = Modifier, anchor: UnitPoint = UnitPoint.center)

Overview

ScaledShape(shape = Shape.…, scale = CGSize.…)

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

init(shape: Content, scale: CGSize, anchor: UnitPoint = .center)

Topics

Creating a ScaledShape

fun ScaledShape(shape: Shape, scale: CGSize, modifier: Modifier = Modifier, anchor: UnitPoint = UnitPoint.center)
SwiftUI ScaledShape.init(shape:scale:anchor:)