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

# init(style:)

Creates a new capsule shape.

## Declaration

```swift
init(style: RoundedCornerStyle = .continuous)
```

## Parameters

- `style`: The style of corners drawn by the shape.
