Skip to content

Commit

Permalink
Fix the location manager being nil after Swiftui view update. (#57)
Browse files Browse the repository at this point in the history
* Update MapView.swift

* Fixed the location manager being nil after Swiftui view update.
  • Loading branch information
engali94 authored Oct 22, 2024
1 parent c39688d commit a6e079c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Sources/MapLibreSwiftUI/MapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public struct MapView<T: MapViewHostViewController>: UIViewControllerRepresentab
camera: camera,
animated: isStyleLoaded)
}
uiViewController.mapView.locationManager = locationManager
}

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

0 comments on commit a6e079c

Please sign in to comment.