From 9b9909f936f3b54cc42f1487f6a67496430bf081 Mon Sep 17 00:00:00 2001 From: "Ali A. Hilal" <2677255+engali94@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:24:09 +0300 Subject: [PATCH 1/3] Update MapView.swift --- Sources/MapLibreSwiftUI/MapView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/MapLibreSwiftUI/MapView.swift b/Sources/MapLibreSwiftUI/MapView.swift index 3cc4081..1c53611 100644 --- a/Sources/MapLibreSwiftUI/MapView.swift +++ b/Sources/MapLibreSwiftUI/MapView.swift @@ -106,6 +106,7 @@ public struct MapView: UIViewControllerRepresentab camera: camera, animated: isStyleLoaded) } + uiViewController.mapView.locationManager = locationManager } @MainActor private func applyModifiers(_ mapViewController: T, runUnsafe: Bool) { From 4246f6e4196950d5a51ec17eb5dee7b3c20228e3 Mon Sep 17 00:00:00 2001 From: "Ali A. Hilal" Date: Thu, 17 Oct 2024 10:32:02 +0300 Subject: [PATCH 2/3] Fixed the location manager being nil after Swiftui view update. --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a17a71c..91190ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Version 0.3.1 - 2024-10-17 + +### Fixed + +- Fixed the location manager being nil after SwiftUI view update. + ## Version 0.3.0 - 2024-10-14 ### Changed From 9f941bb12850cebacc6fa6fc74eeabda9ba6de39 Mon Sep 17 00:00:00 2001 From: "Ali A. Hilal" Date: Sat, 26 Oct 2024 16:26:44 +0200 Subject: [PATCH 3/3] fix location provider issue --- Sources/MapLibreSwiftUI/MapView.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/MapLibreSwiftUI/MapView.swift b/Sources/MapLibreSwiftUI/MapView.swift index 1c53611..3cc4081 100644 --- a/Sources/MapLibreSwiftUI/MapView.swift +++ b/Sources/MapLibreSwiftUI/MapView.swift @@ -106,7 +106,6 @@ public struct MapView: UIViewControllerRepresentab camera: camera, animated: isStyleLoaded) } - uiViewController.mapView.locationManager = locationManager } @MainActor private func applyModifiers(_ mapViewController: T, runUnsafe: Bool) {