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

# lineSubtraction(_:eoFill:)

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

## Declaration

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

```

## Parameters

- `other`: The shape to subtract.
- `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 line of the resulting shape is the line of this shape 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 a shape

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