Note
This repository only exists for the purpose of distribution of GMMapUtility for iOS on the Swift Package Manager. It's main purpose is to be used in public SDKs of Graphmasters GmbH. Please contact Grapmasters GmbH directly if you have any issues.
GMMapUtility contains all utility classes for managing the life cycle of MapLibre Native map views and style layers.
GMMapUtility for iOS is distributed using the Swift Package Manager. To add it to your project, follow the steps below.
- Add the following to your dependencies.
dependencies: [
.package(url: "https://github.com/graphmasters/ios-map-utility-distribution", from: "<VERSION>")
]
- Add the dependency to your target.
.target(
name: "Mytarget",
dependencies: [
.product(name: "GMMapUtility", package: "ios-map-utility")
]
)
-
To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL. You can also navigate to your target’s General pane, and in the “Frameworks, Libraries, and Embedded Content” section, click the + button, select Add Other, and choose Add Package Dependency.
-
Either add GMMapUtility GitHub distribution URL
https://github.com/graphmasters/ios-map-utility-distribution
or search forios-map-utility
package. -
Choose "Next". Xcode should clone the distribution repository and download the binaries.