---
title: RoundedRectangle
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/roundedrectangle
---

# RoundedRectangle

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

## Declaration

```swift
@frozen struct RoundedRectangle
```

## Topics

### Creating a rounded rectangle

- [init(cornerRadius:style:)](swiftui/roundedrectangle/init(cornerradius:style:).md)
- [init(cornerSize:style:)](swiftui/roundedrectangle/init(cornersize:style:).md)

### Getting the shape’s characteristics

- [cornerSize](swiftui/roundedrectangle/cornersize.md)
- [style](swiftui/roundedrectangle/style.md)

### Supporting types

- [animatableData](swiftui/roundedrectangle/animatabledata.md)

## Relationships

### Conforms To

- [Animatable](swiftui/animatable.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [InsettableShape](swiftui/insettableshape.md)
- [RoundedRectangularShape](swiftui/roundedrectangularshape.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Shape](swiftui/shape.md)
- [View](swiftui/view.md)

## See Also

### Creating rectangular shapes

- [Rectangle](swiftui/rectangle.md)
- [RoundedCornerStyle](swiftui/roundedcornerstyle.md)
- [RoundedRectangularShape](swiftui/roundedrectangularshape.md)
- [RoundedRectangularShapeCorners](swiftui/roundedrectangularshapecorners.md)
- [UnevenRoundedRectangle](swiftui/unevenroundedrectangle.md)
- [RectangleCornerRadii](swiftui/rectanglecornerradii.md)
- [RectangleCornerInsets](swiftui/rectanglecornerinsets.md)
- [ConcentricRectangle](swiftui/concentricrectangle.md)
