Skip to content

Commit e3656f9

Browse files
authored
Merge pull request #1 from Rallista/ios-16-compat
Downgraded minimum iOS support to iOS 16
2 parents 7ecb106 + 469cac9 commit e3656f9

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

Package.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import CompilerPluginSupport
77
let package = Package(
88
name: "MapLibreSwiftUI",
99
platforms: [
10-
.iOS(.v17), .macOS(.v13),
10+
.iOS(.v16),
11+
.macOS(.v12),
1112
],
1213
products: [
1314
.library(

Sources/MapLibreSwiftUI/Examples/Camera.swift

+12-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,20 @@ struct CameraDirectManipulationPreview: View {
1010

1111
var body: some View {
1212
MapView(styleURL: styleURL, camera: $camera)
13-
.overlay(alignment: .bottomLeading, content: {
13+
.overlay(alignment: .bottom, content: {
1414
switch camera {
1515
case .centerAndZoom(let coord, let zoom):
16-
Text("\(coord.latitude), \(coord.longitude) z\(zoom ?? 0)")
17-
.padding(.all, 8)
18-
.background(in: .rect(cornerRadii: .init(topLeading: 8,bottomLeading: 8,bottomTrailing: 8,topTrailing: 8)), fillStyle: .init())
19-
.safeAreaPadding(.all)
16+
Text("\(coord.latitude), \(coord.longitude) z \(zoom ?? 0)")
17+
.padding()
18+
.background(
19+
in: .rect(cornerRadii: .init(
20+
topLeading: 8,
21+
bottomLeading: 8,
22+
bottomTrailing: 8,
23+
topTrailing: 8)),
24+
fillStyle: .init()
25+
)
26+
.padding(.bottom, 42)
2027
}
2128
})
2229
.task {

0 commit comments

Comments
 (0)