convert(_:toRegionFrom:)
Converts a rectangle in the specified view’s coordinate system to a map region.
Declaration
func convert(_ rect: CGRect, toRegionFrom view: UIView?) -> MKCoordinateRegionfunc convert(_ rect: CGRect, toRegionFrom view: NSView?) -> MKCoordinateRegionParameters
- rect:
The rectangle you want to convert.
- view:
The view that serves as the reference coordinate system for the
rectparameter.
Return Value
The map region corresponding to the specified view rectangle.