---
title: "symmetricDifference(_:eoFill:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/shape/symmetricdifference(_:eofill:)"
---

# symmetricDifference(_:eoFill:)

Returns a new shape with filled regions either from this shape or the given shape, but not in both.

## Declaration

```swift
nonisolated func symmetricDifference<T>(_ other: T, eoFill: Bool = false) -> some Shape where T : Shape

```

## Parameters

- `other`: The shape to difference.
- `eoFill`: Whether to use the even-odd rule for determining which areas to treat as the interior of the shapes (if true), or the non-zero rule (if false).

## Return Value

Return Value A new shape.

## Discussion

Discussion The filled region of the resulting shape is the filled region contained in either this shape or other, but not both. Any unclosed subpaths in either shape are assumed to be closed. The result of filling this shape using either even-odd or non-zero fill rules is identical.

## See Also

### Performing operations on a shape

- [intersection(_:eoFill:)](swiftui/shape/intersection(_:eofill:).md)
- [lineIntersection(_:eoFill:)](swiftui/shape/lineintersection(_:eofill:).md)
- [lineSubtraction(_:eoFill:)](swiftui/shape/linesubtraction(_:eofill:).md)
- [subtracting(_:eoFill:)](swiftui/shape/subtracting(_:eofill:).md)
- [union(_:eoFill:)](swiftui/shape/union(_:eofill:).md)
