Contents

renderer(for:)

Returns the renderer object for drawing the contents of the specified overlay object.

Declaration

func renderer(for overlay: any MKOverlay) -> MKOverlayRenderer?

Parameters

  • overlay:

    The overlay object whose renderer you want.

Return Value

The renderer object in use for the specified overlay or nil if the overlay is not onscreen.

Discussion

This method returns the renderer object that your map delegate provided in its mapView(_:rendererFor:) method.

See Also

Accessing overlays