---
title: "path(_:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uishape-swift.struct/path(_:)"
---

# path(_:)

Creates a shape with a custom Bézier path.

## Declaration

```swift
static func path(_ path: UIBezierPath) -> UIShape
```
