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

# contains(_:eoFill:)

Returns true if the path contains a specified point.

## Declaration

```swift
func contains(_ p: CGPoint, eoFill: Bool = false) -> Bool
```

## Discussion

Discussion If eoFill is true, this method uses the even-odd rule to define which points are inside the path. Otherwise, it uses the non-zero rule.

## See Also

### Getting the path’s characteristics

- [boundingRect](swiftui/path/boundingrect.md)
- [cgPath](swiftui/path/cgpath.md)
- [currentPoint](swiftui/path/currentpoint.md)
- [description](swiftui/path/description.md)
- [isEmpty](swiftui/path/isempty.md)
