Contents

contains(_:)

Returns whether the receiver contains a specified point.

Declaration

func contains(_ p: CGPoint) -> Bool

Parameters

  • p:

    A point in the receiver’s coordinate system.

Return Value

true if the bounds of the layer contains the point.

See Also

Hit testing