---
title: "contains(_:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/sknode/contains(_:)"
---

# contains(_:)

Returns a Boolean value that indicates whether a point lies inside the parent’s coordinate system.

## Declaration

```swift
@MainActor func contains(_ p: CGPoint) -> Bool
```

```swift
func contains(_ p: CGPoint) -> Bool
```

## Parameters

- `p`: A CGPoint to test against.

## Return Value

Return Value true if the point lies inside the parent’s coordinate system; otherwise false.

## See Also

### Hit Testing

- [Understanding Hit-Testing](spritekit/understanding-hit-testing.md)
- [atPoint(_:)](spritekit/sknode/atpoint(_:).md)
- [nodes(at:)](spritekit/sknode/nodes(at:).md)
