Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View

RoundedRectangle

The Compose SwiftUI form of SwiftUI's RoundedRectangle.

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

Overview

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

@frozen struct RoundedRectangle

Topics

Creating a RoundedRectangle

fun RoundedRectangleView(roundedRectangle: RoundedRectangle, modifier: Modifier = Modifier)
SwiftUI RoundedRectangle · Renders the value as a view.

Initializers

constructor(cornerSize: CGSize, style: RoundedCornerStyle = RoundedCornerStyle.continuous)
SwiftUI RoundedRectangle.init(cornerSize:style:)
constructor(cornerRadius: Double, style: RoundedCornerStyle = RoundedCornerStyle.continuous)
SwiftUI RoundedRectangle.init(cornerRadius:style:)

Types

class RoundedRectangle
SwiftUI RoundedRectangle