---
title: "init(cornerRadius:)"
framework: paperkit
role: symbol
role_heading: Initializer
path: "paperkit/shapemarkup/shape-swift.enum/rectangle-swift.struct/init(cornerradius:)"
---

# init(cornerRadius:)

Create a new rectangle with optionally rounded corners.

## Declaration

```swift
init(cornerRadius: CGFloat? = nil)
```

## Parameters

- `cornerRadius`: The corner radius in unit coordinate space (0.0 to 1.0). A value of 0.1 represents 10% of the minimum dimension of the shape. If nil then this is a plain rectangle.
