Files
MapLibreParticleLab/platform/ios/app-swift/Sources/MapLibreNavigationView.swift
Adrian Cojocaru 2a7249a3b0 Rendering statistics view (#3322)
Co-authored-by: Bart Louwers <bart@emeel.net>
2025-06-03 17:59:51 +02:00

73 lines
3.1 KiB
Swift

import MapLibre
import SwiftUI
struct MapLibreNavigationView: View {
var body: some View {
NavigationStack {
List {
NavigationLink("SimpleMap") {
SimpleMap().edgesIgnoringSafeArea(.all)
}
#if MLN_RENDER_BACKEND_METAL
NavigationLink("CustomStyleLayer (Metal)") {
CustomStyleLayerExample().edgesIgnoringSafeArea(.all)
}
#endif
NavigationLink("LineTapMap") {
LineTapMap().edgesIgnoringSafeArea(.all)
}
NavigationLink("LocationPrivacyExample") {
LocationPrivacyExampleView()
}
NavigationLink("BlockingGesturesExample") {
BlockingGesturesExample()
}
NavigationLink("MaximumScreenBoundsExample") {
MaximumScreenBoundsExample()
}
NavigationLink("LineStyleLayerExample") {
LineStyleLayerExampleUIViewControllerRepresentable()
}
NavigationLink("WebAPIDataExample") {
WebAPIDataExampleUIViewControllerRepresentable()
}
NavigationLink("AddMarkerExample") {
AddMarkerSymbolExampleUIViewControllerRepresentable()
}
NavigationLink("ObserverExample") {
ObserverExampleViewUIViewControllerRepresentable()
}
Group {
NavigationLink("AnimatedLineExample") {
AnimatedLineExampleUIViewControllerRepresentable()
}
NavigationLink("AnnotationViewExample") {
AnnotationViewExampleUIViewControllerRepresentable()
}
NavigationLink("BuildingLightExample") {
BuildingLightExampleUIViewControllerRepresentable()
}
NavigationLink("StaticSnapshotExample") {
StaticSnapshotExampleUIViewControllerRepresentable()
}
NavigationLink("DDSCircleLayerExample") {
DDSCircleLayerExampleUIViewControllerRepresentable().edgesIgnoringSafeArea(.all)
}
NavigationLink("POIAlongRouteExample") {
POIAlongRouteExampleUIViewControllerRepresentable()
}
NavigationLink("ManageOfflineRegionsExample") {
ManageOfflineRegionsExampleUIViewControllerRepresentable()
}
NavigationLink("OfflinePackExampleUIViewControllerRepresentable") {
OfflinePackExampleUIViewControllerRepresentable()
}
NavigationLink("MultipleImagesExample") {
MultipleImagesExampleUIViewControllerRepresentable().edgesIgnoringSafeArea(.all)
}
}
}
}
}
}