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

# byIntersection(with:)

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

## Declaration

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

## Parameters

- `region`: The region to intersect.

## Return Value

Return Value A new region whose contents include all points that are included in both regions.

## 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)
- [byUnion(with:)](spritekit/skregion/byunion(with:).md)
