Skip to content

Commit

Permalink
Merge pull request maplibre#2 from Rallista/ios15-downgrade
Browse files Browse the repository at this point in the history
ios 15 compatiblity
  • Loading branch information
Archdoog authored Nov 1, 2023
2 parents e3656f9 + c3a6b34 commit 7fc420a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import CompilerPluginSupport
let package = Package(
name: "MapLibreSwiftUI",
platforms: [
.iOS(.v16),
.macOS(.v12),
.iOS(.v15),
.macOS(.v11),
],
products: [
.library(
Expand Down
12 changes: 3 additions & 9 deletions Sources/MapLibreSwiftUI/Examples/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,13 @@ struct CameraDirectManipulationPreview: View {
case .centerAndZoom(let coord, let zoom):
Text("\(coord.latitude), \(coord.longitude) z \(zoom ?? 0)")
.padding()
.background(
in: .rect(cornerRadii: .init(
topLeading: 8,
bottomLeading: 8,
bottomTrailing: 8,
topTrailing: 8)),
fillStyle: .init()
)
.background(in: RoundedRectangle(cornerRadius: 8),
fillStyle: .init())
.padding(.bottom, 42)
}
})
.task {
try! await Task.sleep(for: .seconds(3))
try! await Task.sleep(nanoseconds: 3_000_000_000)

camera = MapView.Camera.centerAndZoom(switzerland, 6)
}
Expand Down

0 comments on commit 7fc420a

Please sign in to comment.