Files
MapLibreParticleLab/platform/ios/app-swift/Sources/SimpleMapView.swift
2024-05-13 09:43:56 +00:00

16 lines
320 B
Swift

import MapLibre
import SwiftUI
import UIKit
// #-example-code(SimpleMap)
struct SimpleMap: UIViewRepresentable {
func makeUIView(context _: Context) -> MLNMapView {
let mapView = MLNMapView()
return mapView
}
func updateUIView(_: MLNMapView, context _: Context) {}
}
// #-end-example-code