---
title: "init(_:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/anyshape/init(_:)"
---

# init(_:)

Create an any shape instance from a shape.

## Declaration

```swift
init<S>(_ shape: S) where S : Shape
```
