Instance Method

contains(_:)

Returns a Boolean value indicating whether the geographic area contains the specified coordinate.

Declaration

func contains(_ coordinate: CLLocationCoordinate2D) -> Bool

Parameters

coordinate

The coordinate to test against the region.

Return Value

true if the coordinate lies within the region’s boundaries or false if it does not.