Instance Method

contains(_:)

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

Declaration

func contains(_ p: CGPoint) -> Bool

Parameters

p

A CGPoint to test against.

Return Value

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

See Also

Determining If a Point Lies in a Node

func atPoint(CGPoint)

Returns the deepest visible descendant that intersects a point.

func nodes(at: CGPoint)

Returns an array of all visible descendants that intersect a point.