TomTomSDKCommonUI

TomTomSDKCommonUI

The Common UI module provides a set of views and data models common for the user interface for navigation applications. This module includes various components that display crucial navigation information, allowing users to engage more effectively with their journey.

Functionalities
  • NavigationStackView Responsible for displaying the navigation stack content while handling user interactions, ensuring a responsive user experience.
  • ETAView Provides a view that shows the estimated time of arrival (ETA), so users can gauge how soon they will reach their destination.
  • WaypointArrivalView Displays arrival information for a waypoint on a route, including the waypoint name, address, and charging stop information. This view helps users understand their navigation context at critical points in their journey.



API Overview

  • The waypoint arrival view.

    This view displays the arrival information for a waypoint on a route. It includes details such as the waypoint name, address, and charging stop information.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    @MainActor
    public struct WaypointArrivalView : View
  • A shape with rounded corners.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct RoundedCornerShape : Shape
  • A button that displays an image and/or text, and performs an action when tapped.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    @MainActor
    public struct ImageTextButton : View
  • A view that displays the estimated time of arrival (ETA) information.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    @MainActor
    public struct ETAView : View
  • A view that displays a stack of instructions, including maneuvers, road signs, and route progress.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    @MainActor
    public struct InstructionStackView : View
  • A view that displays a maneuver with an icon, distance, and a mute button.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    @MainActor
    public struct ManeuverView : View
  • A view that displays a road number.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    @MainActor
    public struct RoadNumberView : View
  • A view that displays a route update message with an icon.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    @MainActor
    public struct RouteUpdateView : View
  • A view that is responsible for displaying the navigation stack content and handling user interactions.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    @MainActor
    public struct NavigationStackView : View
  • Represents an image asset with a specified name.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct AssetImage : Equatable
  • Fontable entity.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol Fontable
  • Different styles of the NotoSans font.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum NotoSansFont : String, Fontable
  • Image asset name, with optional flipping and bundle information.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct ImageName : Equatable, Hashable
  • A view that displays the current speed limit and the user’s current speed.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    @MainActor
    public struct SpeedLimitView : View