MTAnimationOptions

public struct MTAnimationOptions : @unchecked Sendable, Codable

Provides animation options for navigation functions.

  • The animation’s duration, measured in milliseconds.

    Declaration

    Swift

    public var duration: Double?
  • Point of the target center relative to real map container center at the end of animation.

    Declaration

    Swift

    public var offset: MTPoint?
  • Boolean indicating whether animation will occur.

    Declaration

    Swift

    public var shouldAnimate: Bool?
  • Boolean indicating whether animation is essential.

    Declaration

    Swift

    public var isEssential: Bool?
  • Rate of the change of the animation.

    Declaration

    Swift

    public var easing: MTEasing?
  • Initializes the options.

    Declaration

    Swift

    public init(
        duration: Double? = nil,
        offset: MTPoint? = nil,
        shouldAnimate: Bool? = nil,
        isEssential: Bool? = nil,
        easing: MTEasing? = nil
    )