---
title: "union(with:)"
framework: coreimage
role: symbol
role_heading: Instance Method
path: "coreimage/cifiltershape/union(with:)-52mnd"
---

# union(with:)

Creates a filter shape that results from the union of the current filter shape and another filter shape object.

## Declaration

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

## Parameters

- `s2`: A filter shape object.

## Return Value

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

## See Also

### Modifying a Filter Shape

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