From 469cac94971b930afc9beb5918fd268579aa6df2 Mon Sep 17 00:00:00 2001 From: Jacob Fielding Date: Tue, 31 Oct 2023 18:44:16 -0700 Subject: [PATCH] Downgraded minimum iOS support to iOS 16 --- Package.swift | 3 ++- Sources/MapLibreSwiftUI/Examples/Camera.swift | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Package.swift b/Package.swift index 7f0e8fb..2339c42 100644 --- a/Package.swift +++ b/Package.swift @@ -7,7 +7,8 @@ import CompilerPluginSupport let package = Package( name: "MapLibreSwiftUI", platforms: [ - .iOS(.v17), .macOS(.v13), + .iOS(.v16), + .macOS(.v12), ], products: [ .library( diff --git a/Sources/MapLibreSwiftUI/Examples/Camera.swift b/Sources/MapLibreSwiftUI/Examples/Camera.swift index a55ca79..0d8fc73 100644 --- a/Sources/MapLibreSwiftUI/Examples/Camera.swift +++ b/Sources/MapLibreSwiftUI/Examples/Camera.swift @@ -10,13 +10,20 @@ struct CameraDirectManipulationPreview: View { var body: some View { MapView(styleURL: styleURL, camera: $camera) - .overlay(alignment: .bottomLeading, content: { + .overlay(alignment: .bottom, content: { switch camera { case .centerAndZoom(let coord, let zoom): - Text("\(coord.latitude), \(coord.longitude) z\(zoom ?? 0)") - .padding(.all, 8) - .background(in: .rect(cornerRadii: .init(topLeading: 8,bottomLeading: 8,bottomTrailing: 8,topTrailing: 8)), fillStyle: .init()) - .safeAreaPadding(.all) + Text("\(coord.latitude), \(coord.longitude) z \(zoom ?? 0)") + .padding() + .background( + in: .rect(cornerRadii: .init( + topLeading: 8, + bottomLeading: 8, + bottomTrailing: 8, + topTrailing: 8)), + fillStyle: .init() + ) + .padding(.bottom, 42) } }) .task {