Other Type Aliases

The following type aliases are available globally.

  • Handles url opening.

    Declaration

    Swift

    @available(iOS 13, *)
     @_spi(Experimental) public typealias MapURLOpener = (URL) -> Void
  • An action called when the map is tapped.

    Declaration

    Swift

    @available(iOS 13.0, *)
     @_spi(Experimental) public typealias MapTapAction = (CGPoint) -> Void
  • An action called when the specified layer is tapped.

    Declaration

    Swift

    @available(iOS 13.0, *)
     @_spi(Experimental) public typealias MapLayerTapAction = (MapLayerTapPayload) -> Void
  • An action called when a new location is emitted.

    Declaration

    Swift

    @available(iOS 13.0, *)
     @_spi(Experimental) public typealias LocationUpdateAction = (Location) -> Void