---
title: "init(cornerRadii:style:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/unevenroundedrectangle/init(cornerradii:style:)"
---

# init(cornerRadii:style:)

Creates a new rounded rectangle shape with uneven corners.

## Declaration

```swift
init(cornerRadii: RectangleCornerRadii, style: RoundedCornerStyle = .continuous)
```

## Parameters

- `cornerRadii`: The radii of each corner.
- `style`: The style of corners drawn by the shape.

## See Also

### Creating an uneven rounded rectangle

- [init(topLeadingRadius:bottomLeadingRadius:bottomTrailingRadius:topTrailingRadius:style:)](swiftui/unevenroundedrectangle/init(topleadingradius:bottomleadingradius:bottomtrailingradius:toptrailingradius:style:).md)
