Contents

contains(_:)

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

Declaration

@MainActor func contains(_ p: CGPoint) -> Bool
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

Hit Testing