Skip to content

Commit a6e079c

Browse files
authored
Fix the location manager being nil after Swiftui view update. (maplibre#57)
* Update MapView.swift * Fixed the location manager being nil after Swiftui view update.
1 parent c39688d commit a6e079c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## Version 0.3.1 - 2024-10-17
9+
10+
### Fixed
11+
12+
- Fixed the location manager being nil after SwiftUI view update.
13+
814
## Version 0.3.0 - 2024-10-14
915

1016
### Changed

Sources/MapLibreSwiftUI/MapView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public struct MapView<T: MapViewHostViewController>: UIViewControllerRepresentab
106106
camera: camera,
107107
animated: isStyleLoaded)
108108
}
109+
uiViewController.mapView.locationManager = locationManager
109110
}
110111

111112
@MainActor private func applyModifiers(_ mapViewController: T, runUnsafe: Bool) {

0 commit comments

Comments
 (0)