Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View

AnyShape

The Compose SwiftUI form of SwiftUI's AnyShape.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
class AnyShape

Overview

This is the Kotlin form of SwiftUI AnyShape: SwiftUI documentation. In Swift it reads:

@frozen struct AnyShape

Topics

Creating a AnyShape

fun AnyShapeView(anyShape: AnyShape, modifier: Modifier = Modifier)
SwiftUI AnyShape · Renders the value as a view.

Initializers

constructor(shape: Shape)
SwiftUI AnyShape.init(_:)

Types

class AnyShape
SwiftUI AnyShape