Contents

contains(_:)

Returns a Boolean value that indicates whether the specified map point lies within the rectangle.

Declaration

func contains(_ point: MKMapPoint) -> Bool

Parameters

  • point:

    The point to check.

Return Value

true if the rectangle isn’t null or empty and the point is inside the rectangle; otherwise, false.

Discussion

For this method, a point is inside the rectangle if its coordinates lie inside the rectangle or on the minimum X or minimum Y edge.

See Also

Intersecting the rectangle