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 to report issues or ask for help.
MapLibre Native is a community-led fork derived from 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) and Android SDK (forked from mapbox-gl-native-android).
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.
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
cloned, and openPackage.swiftin at least Xcode 12. - Run Playground by choosing
Editor>Run Playgroundor⇧-⌘-⏎ - See issue maplibre-gl-native-distribution#8 for screenshots of the MapLibre for Swift Playgrounds in action.