---
title: "intersect(with:)"
framework: coreimage
role: symbol
role_heading: Instance Method
path: "coreimage/cifiltershape/intersect(with:)-8iw"
---

# intersect(with:)

Creates a filter shape object that represents the intersection of the current filter shape and the specified filter shape object.

## Declaration

```swift
func intersect(with s2: CIFilterShape) -> CIFilterShape
```

## Parameters

- `s2`: A filter shape object.

## Return Value

Return Value The filter shape object that results from the intersection.

## See Also

### Modifying a Filter Shape

- [insetBy(x:y:)](coreimage/cifiltershape/insetby(x:y:).md)
- [intersect(with:)](coreimage/cifiltershape/intersect(with:)-2o2n8.md)
- [transform(by:interior:)](coreimage/cifiltershape/transform(by:interior:).md)
- [union(with:)](coreimage/cifiltershape/union(with:)-52mnd.md)
- [union(with:)](coreimage/cifiltershape/union(with:)-75ebo.md)
