contains(_:)
Returns a Boolean value indicating whether the region contains the specified coordinate.
Declaration
func contains(_ coordinate: CLLocationCoordinate2D) -> BoolParameters
- 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.
Discussion
In iOS, use a CLCircularRegion object to manage geographic regions.