SDK Setup Overview
Use MapConductorCore plus one or more provider packages.
.package(url: "https://github.com/MapConductor/ios-sdk-core", from: "1.0.4"),.package(url: "https://github.com/MapConductor/ios-for-googlemaps", from: "1.0.4")Provider SDK setup still applies:
- Google Maps: call
GMSServices.provideAPIKey(_:) - Mapbox: call
initializeMapbox(accessToken:) - MapKit: no global SDK initialization
- MapLibre: choose a
MapLibreDesign - ArcGIS: use the authentication helpers in
MapConductorForArcGISwhen authentication is needed
Minimal Google Maps Example
Section titled “Minimal Google Maps Example”import SwiftUIimport MapConductorCoreimport MapConductorForGoogleMaps
struct ContentView: View { @StateObject private var mapViewState = GoogleMapViewState( cameraPosition: MapCameraPosition( position: GeoPoint(latitude: 35.6812, longitude: 139.7671), zoom: 13 ) )
var body: some View { GoogleMapView(state: mapViewState) { Marker( position: GeoPoint(latitude: 35.6812, longitude: 139.7671), icon: DefaultMarkerIcon(label: "T") ) } }}See the provider-specific setup pages for package and credential details.