contains(_:)
Returns whether the receiver contains a specified point.
Declaration
func contains(_ p: CGPoint) -> BoolParameters
- p:
A point in the receiver’s coordinate system.
Return Value
true if the bounds of the layer contains the point.
Returns whether the receiver contains a specified point.
func contains(_ p: CGPoint) -> BoolA point in the receiver’s coordinate system.
true if the bounds of the layer contains the point.