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

# byIntersection(with:)

Returns a new region containing only the area occupied by both the specified region and current region.

## Declaration

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

## Parameters

- `region`: The region to be intersected with the current region.

## Return Value

Return Value A new region that contains only the points that are in both the current region and the shape specified by the region parameter.

## See Also

### Creating complex regions

- [inverse()](uikit/uiregion/inverse().md)
- [byDifference(from:)](uikit/uiregion/bydifference(from:).md)
- [byUnion(with:)](uikit/uiregion/byunion(with:).md)
