Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View

OffsetShape

The Compose SwiftUI form of SwiftUI's OffsetShape.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun OffsetShape(shape: Shape, offset: CGSize, modifier: Modifier = Modifier)

Overview

OffsetShape(shape = Shape.…, offset = CGSize.…)

This is the Kotlin form of SwiftUI OffsetShape.init(shape:offset:): SwiftUI documentation. In Swift it reads:

init(shape: Content, offset: CGSize)

Topics

Creating a OffsetShape

fun OffsetShape(shape: Shape, offset: CGSize, modifier: Modifier = Modifier)
SwiftUI OffsetShape.init(shape:offset:)