Structures

The following structures are available globally.

  • Represents body of the MTError exception.

    See more

    Declaration

    Swift

    public struct MTException : Sendable
  • Log object used with MTLogger.

    See more

    Declaration

    Swift

    public struct MTLog
  • Handles zooming in the map with double tap.

    See more

    Declaration

    Swift

    @MainActor
    public struct MTDoubleTapZoomInGesture : MTGesture
  • Handles panning the map by dragging.

    See more

    Declaration

    Swift

    @MainActor
    public struct MTDragPanGesture : MTGesture
  • Handles zoom and rotate by pinching with two fingers.

    See more

    Declaration

    Swift

    @MainActor
    public struct MTPinchRotateAndZoomGesture : MTGesture
  • Handles changing the pitch by dragging with two fingers.

    See more

    Declaration

    Swift

    @MainActor
    public struct MTTwoFingersDragPitchGesture : MTGesture
  • Map view content builder.

    See more

    Declaration

    Swift

    @resultBuilder
    public struct MTMapContentBuilder
  • Parameters of the map object.

    See more

    Declaration

    Swift

    public struct MTMapOptions : @unchecked Sendable
    extension MTMapOptions: Codable
  • Declarative Map view for use in SwiftUI

    See more

    Declaration

    Swift

    @MainActor
    public struct MTMapViewContainer : View
  • Provides animation options for navigation functions.

    See more

    Declaration

    Swift

    public struct MTAnimationOptions : @unchecked Sendable, Codable
  • Options for controlling the desired location, zoom, bearing, and pitch of the camera.

    See more

    Declaration

    Swift

    public struct MTCameraOptions : @unchecked Sendable
    extension MTCameraOptions: Codable
  • Options for drag and pan gesstures.

    See more

    Declaration

    Swift

    public struct MTDragPanOptions : @unchecked Sendable, Codable
  • Options describing the destination and animation of the flyTo transition.

    See more

    Declaration

    Swift

    public struct MTFlyToOptions : @unchecked Sendable, Codable
  • Options for setting padding on calls to map methods.

    See more

    Declaration

    Swift

    public struct MTPaddingOptions : @unchecked Sendable, Codable
  • Supporting type to add validation to another style related type.

    See more

    Declaration

    Swift

    public struct MTStyleSetterOptions : @unchecked Sendable, Codable
  • Color wrapper.

    See more

    Declaration

    Swift

    public struct MTColor : Codable
  • Object sent together with MTEvent.

    See more

    Declaration

    Swift

    public struct MTData : Codable
  • A style’s light property provides a global light source for that style.

    See more

    Declaration

    Swift

    public struct MTLight : @unchecked Sendable, Codable
  • Two numbers representing x and y screen coordinates in pixels.

    See more

    Declaration

    Swift

    public struct MTPoint : Codable, Sendable
  • The style spec representation of the source if the event has a dataType of source .

    See more

    Declaration

    Swift

    public struct MTSourceData : Codable