---
title: "byUnion(with:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/skregion/byunion(with:)"
---

# byUnion(with:)

Returns a new region created by combining the contents of this region with another region.

## Declaration

```swift
func byUnion(with region: SKRegion) -> Self
```

## Parameters

- `region`: The region to combine with the current region.

## Return Value

Return Value A new region whose contents include all points that are included in either 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)
- [init(path:)](spritekit/skregion/init(path:).md)
- [inverse()](spritekit/skregion/inverse().md)
- [byDifference(from:)](spritekit/skregion/bydifference(from:).md)
- [byIntersection(with:)](spritekit/skregion/byintersection(with:).md)
