https://github.com/tomtom-international/tomtom-sdk-spm-navigation
https://github.com/tomtom-international/tomtom-sdk-spm-navigation
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomtom-international/tomtom-sdk-spm-navigation
- Owner: tomtom-international
- Created: 2022-08-23T13:12:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-06T18:32:11.000Z (about 1 month ago)
- Last Synced: 2025-05-07T03:09:12.391Z (about 1 month ago)
- Language: Swift
- Size: 155 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TomTomSDKNavigationFrameworks
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.
## Requirements
1. Xcode 14.2+
1. Swift 5.7+
1. Deployment target: iOS 13+## Installation
### Adding the TomTomSDKNavigationFrameworks package to your Xcode project
1. Add a package dependency to your Xcode project:
1. Select `File` → `Add Package Dependencies...` (or `File` → `Add Packages...` in Xcode 14).
2. Enter the next URL in a search field: https://github.com/tomtom-international/tomtom-sdk-spm-navigation
3. Set `Dependency Rule` to `Exact Version`.
> We recommend using the `Exact Version` to have a consistent resolution.
4. Ensure the `Add to Project` field contains your project.
5. Click `Add Package` and wait for the Xcode to resolve the package.
6. You should see the list of `Package Products`.
7. Select a product you want to add to your project.
8. And click `Add Package`.
2. Add more products to your target:
1. Select the target to which you want to add dependencies.
2. Select the `General` section and scroll to the `Frameworks, Libraries, and Embedded Content` list.
3. Click `+` button.
4. Select the products you want to add and click the `Add` button.
### Adding the TomTomSDKNavigationFrameworks package to your SPM package
1. Add next line to your package dependencies in the `Package.swift` file:
```swift
.package(url: "https://github.com/tomtom-international/tomtom-sdk-spm-navigation", exact: "0.69.3")
```
> We recommend using the `exact` version to have a consistent resolution.
2. Add next required module to your target dependencies in the `Package.swift` file, e.g.:
```swift
.product(name: "TomTomSDKNavigation", package: "tomtom-sdk-spm-navigation")
```
3. The result package might look like:
```swift
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.69.3")
],
targets: [
.target(name: "MyLibrary", dependencies: [
.product(name: "TomTomSDKNavigation", package: "tomtom-sdk-spm-navigation")
/* add more products here */
]),
]
)
```## Usage
For more information, please refer to the [TomTom Navigation SDK documentation](https://developer.tomtom.com/navigation/ios/introduction/introduction).