Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View

Rectangle

The Compose SwiftUI form of SwiftUI's Rectangle.

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

Overview

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

@frozen struct Rectangle

Topics

Creating a Rectangle

fun RectangleView(rectangle: Rectangle, modifier: Modifier = Modifier)
SwiftUI Rectangle · Renders the value as a view.

Initializers

constructor()
SwiftUI Rectangle.init()

Types

class Rectangle
SwiftUI Rectangle