UnevenRoundedRectangle

A rectangular shape with rounded corners with different values, aligned inside the frame of the view containing it.

ComponentiOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+UnevenRoundedRectangle in SwiftUI

Declaration

React
import { UnevenRoundedRectangle } from 'swiftui-react-native';
Swift
@frozen struct UnevenRoundedRectangle

Initializers

2 SwiftUI initializers back <UnevenRoundedRectangle>. The props you pass pick one.

React
<UnevenRoundedRectangle
  cornerRadii: SwiftUI.RectangleCornerRadii
  roundedCornerStyle?: SwiftUI.RoundedCornerStyle
/>
Swift
init(
    cornerRadii: RectangleCornerRadii,
    style: RoundedCornerStyle = .continuous
)

Also takes the common view props: modifiers, style and testID.

See also

More in Shapes.