---
title: "roundedRectangle(cornerRadius:)"
framework: paperkit
role: symbol
role_heading: Type Method
path: "paperkit/shapemarkup/shape-swift.enum/roundedrectangle(cornerradius:)"
---

# roundedRectangle(cornerRadius:)

A rectangle with rounded corners.

## Declaration

```swift
static func roundedRectangle(cornerRadius: CGFloat) -> ShapeMarkup.Shape
```

## 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.
