Skip to content
Make with

MapLibre Native iOS SDKOfficial

Official MapLibre Native SDK for iOS

Maintained by MapLibre

The official MapLibre Native iOS SDK offers iOS developers direct access to MapLibre Native capabilities. Built for Swift and Objective-C, it provides high-performance vector map rendering, offline map support, and comprehensive mapping features without requiring additional frameworks.

Quick start

Swift Package Manager: https://github.com/maplibre/maplibre-gl-native-distribution (product "MapLibre", version 6.31.0, Up to Next Major)
import MapLibre
import SwiftUI

struct SimpleMap: UIViewRepresentable {
    func makeUIView(context _: Context) -> MLNMapView {
        let mapView = MLNMapView(
            frame: .zero,
            styleURL: URL(string: "https://tiles.openfreemap.org/styles/liberty")
        )
        mapView.setCenter(CLLocationCoordinate2D(latitude: 20, longitude: 0), zoomLevel: 2, animated: false)
        return mapView
    }

    func updateUIView(_: MLNMapView, context _: Context) {}
}

struct ContentView: View {
    var body: some View {
        SimpleMap().ignoresSafeArea()
    }
}
›Setup noteschecked with v6.31.0

The latest release is 6.31.0 (2026-09-11). In Xcode, choose File > Add Package Dependencies, paste the URL and add the MapLibre library product. The official Getting Started guide covers SwiftUI (a UIViewRepresentable around MLNMapView) and UIKit (a UIViewController). The MLNMapView(frame:styleURL:) and setCenter(_:zoomLevel:animated:) calls follow the official Swift examples, and those examples use this exact OpenFreeMap Liberty URL (ExampleStyles.md). Without a styleURL, the map shows the MapLibre demotiles style. The package is also on CocoaPods (pod 'MapLibre'), where the newest version is currently 6.30.0. The podspec sets the iOS deployment target to 15.5.

More platforms on Get started.

Used by 53 products

See all →