The TomTomSDKNavigationFrameworks package provides iOS modules that help you bring map visualization, location handling, and driver guidance to your iOS application with minimal effort.
The Navigation SDK issues visual and audio turn-by-turn instructions at the right moments and smartly handles events like deviations and traffic jams in the route ahead.
It is also highly customizable, letting customers redefine various aspects of the guidance logic.
- Xcode 14.2+
- Swift 5.7+
- Deployment target: iOS 13+
- Add a package dependency to your Xcode project:
- Select
File
→Add Package Dependencies...
(orFile
→Add Packages...
in Xcode 14). - Enter the next URL in a search field: https://github.com/tomtom-international/tomtom-sdk-spm-navigation
- Set
Dependency Rule
toExact Version
.We recommend using the
Exact Version
to have a consistent resolution. - Ensure the
Add to Project
field contains your project. - Click
Add Package
and wait for the Xcode to resolve the package. - You should see the list of
Package Products
. - Select a product you want to add to your project.
- And click
Add Package
.
- Select
- Add more products to your target:
- Select the target to which you want to add dependencies.
- Select the
General
section and scroll to theFrameworks, Libraries, and Embedded Content
list. - Click
+
button. - Select the products you want to add and click the
Add
button.
- Add next line to your package dependencies in the
Package.swift
file:.package(url: "https://github.com/tomtom-international/tomtom-sdk-spm-navigation", exact: "0.67.0")
We recommend using the
exact
version to have a consistent resolution. - Add next required module to your target dependencies in the
Package.swift
file, e.g.:.product(name: "TomTomSDKNavigation", package: "tomtom-sdk-spm-navigation")
- The result package might look like:
let package = Package( name: "MyLibrary", platforms: [.iOS(.v14)], products: [ .library(name: "MyLibrary", targets: ["MyLibrary"]), ], dependencies: [ .package(url: "https://github.com/tomtom-international/tomtom-sdk-spm-navigation", exact: "0.67.0") ], targets: [ .target(name: "MyLibrary", dependencies: [ .product(name: "TomTomSDKNavigation", package: "tomtom-sdk-spm-navigation") /* add more products here */ ]), ] )
For more information, please refer to the TomTom Navigation SDK documentation.