https://github.com/maplibre/maplibre-gl-native-distribution
MapLibre Native for iOS distributed via the Swift Package Manager.
https://github.com/maplibre/maplibre-gl-native-distribution
ios maplibre swift swift-packages xcode
Last synced: about 2 months ago
JSON representation
MapLibre Native for iOS distributed via the Swift Package Manager.
- Host: GitHub
- URL: https://github.com/maplibre/maplibre-gl-native-distribution
- Owner: maplibre
- License: bsd-2-clause
- Created: 2020-12-15T11:41:19.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-05T15:22:17.000Z (over 1 year ago)
- Last Synced: 2025-03-28T21:37:45.280Z (about 1 year ago)
- Topics: ios, maplibre, swift, swift-packages, xcode
- Language: Swift
- Homepage: https://maplibre.org
- Size: 43.9 KB
- Stars: 58
- Watchers: 14
- Forks: 29
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MapLibre Native for iOS

[](https://swift.org/package-manager/)
[](https://swiftpackageindex.com/maplibre/maplibre-gl-native-distribution)
> **Note**
> This repository only exists for the purpose of binary distribution of MapLibre Native for iOS on the Swift Package Index.
> Please use the [main MapLibre Native repository](https://github.com/maplibre/maplibre-native) to report issues or ask for help.
[MapLibre Native](https://github.com/maplibre/maplibre-native) is a community-led fork derived from [mapbox-gl-native](https://github.com/mapbox/mapbox-gl-native) before their switch to a non-OSS license. The fork also includes Maps SDK for iOS and macOS (forked from [mapbox-gl-native-ios](https://github.com/mapbox/mapbox-gl-native-ios)) and Android SDK (forked from [mapbox-gl-native-android](https://github.com/mapbox/mapbox-gl-native-android)).
---
## Add MapLibre to your Project
To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL. See [Adding Package Dependencies to Your App.](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app)
## Test MapLibre with a Swift Playgrounds
When you download this repo there is a Swift Playground that allows you to change the style and play around with a very simple rendered map.
* Download this repo
* Navigate to the folder where you `clone`d, and open `Package.swift` in at least Xcode 12.
* Run Playground by choosing `Editor` > `Run Playground` or `⇧-⌘-⏎`
* See issue [maplibre-gl-native-distribution#8](https://github.com/maplibre/maplibre-gl-native-distribution/issues/8) for screenshots of the MapLibre for Swift Playgrounds in action.