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

# symmetricDifference(_:eoFill:)

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

## Declaration

```swift
func symmetricDifference(_ other: Path, eoFill: Bool = false) -> Path
```

## Parameters

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

## Return Value

Return Value A new path.

## Discussion

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

## See Also

### Performing operations on the path

- [addRoundedRect(in:cornerSize:style:transform:)](swiftui/path/addroundedrect(in:cornersize:style:transform:).md)
- [intersection(_:eoFill:)](swiftui/path/intersection(_:eofill:).md)
- [lineIntersection(_:eoFill:)](swiftui/path/lineintersection(_:eofill:).md)
- [lineSubtraction(_:eoFill:)](swiftui/path/linesubtraction(_:eofill:).md)
- [normalized(eoFill:)](swiftui/path/normalized(eofill:).md)
- [subtracting(_:eoFill:)](swiftui/path/subtracting(_:eofill:).md)
- [union(_:eoFill:)](swiftui/path/union(_:eofill:).md)
