Returns the view associated with the overlay object if any.
Deprecated
Use the renderer(for:)
method instead.
SDKs
- iOS 4.0–13.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
Framework
- Map
Kit
Declaration
func view(for overlay: MKOverlay) -> MKOverlay View
Parameters
overlay
The overlay object whose view you want.
Return Value
The view associated with the overlay object or nil
if the overlay is not onscreen.