---
title: "init(path:)"
framework: spritekit
role: symbol
role_heading: Initializer
path: "spritekit/skregion/init(path:)"
---

# init(path:)

Initializes a new region using a Core Graphics path.

## Declaration

```swift
init(path: CGPath)
```

## Parameters

- `path`: A path that defines the new region’s shape. The path is assumed to use the even-odd winding rule.

## Return Value

Return Value A newly initialized region.

## See Also

### Creating and Initializing Region Objects

- [infinite()](spritekit/skregion/infinite().md)
- [init(size:)](spritekit/skregion/init(size:).md)
- [init(radius:)](spritekit/skregion/init(radius:).md)
- [inverse()](spritekit/skregion/inverse().md)
- [byDifference(from:)](spritekit/skregion/bydifference(from:).md)
- [byIntersection(with:)](spritekit/skregion/byintersection(with:).md)
- [byUnion(with:)](spritekit/skregion/byunion(with:).md)
