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

# lineSubtraction(_:eoFill:)

Returns a new path with a line from this path that does not overlap the filled region of the given path.

## Declaration

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

## Parameters

- `other`: The path to subtract.
- `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 line of the resulting path is the line of this path that does not overlap the filled region of other. Intersected subpaths that are clipped create open subpaths. Closed subpaths that do not intersect other remain closed.

## 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)
- [normalized(eoFill:)](swiftui/path/normalized(eofill:).md)
- [subtracting(_:eoFill:)](swiftui/path/subtracting(_:eofill:).md)
- [symmetricDifference(_:eoFill:)](swiftui/path/symmetricdifference(_:eofill:).md)
- [union(_:eoFill:)](swiftui/path/union(_:eofill:).md)
