Skip to content

Commit

Permalink
Merge pull request #1 from Rallista/ios-16-compat
Browse files Browse the repository at this point in the history
Downgraded minimum iOS support to iOS 16
  • Loading branch information
Archdoog authored Nov 1, 2023
2 parents 7ecb106 + 469cac9 commit e3656f9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import CompilerPluginSupport
let package = Package(
name: "MapLibreSwiftUI",
platforms: [
.iOS(.v17), .macOS(.v13),
.iOS(.v16),
.macOS(.v12),
],
products: [
.library(
Expand Down
17 changes: 12 additions & 5 deletions Sources/MapLibreSwiftUI/Examples/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e3656f9

Please sign in to comment.