mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-21 22:30:46 +08:00
fix: refresh MapKit coordinate type at runtime
This commit is contained in:
@@ -222,6 +222,13 @@ final class MapLocationState: ObservableObject {
|
||||
if coordinate == nil { realtimeLocation = nil }
|
||||
}
|
||||
|
||||
/// Discards a blue-point sample represented in a superseded MapKit
|
||||
/// coordinate system. The next native callback repopulates the cache.
|
||||
func clearRealtimeLocationForMapCoordinateSystemChange() {
|
||||
realtimeLocation = nil
|
||||
realtimeCoordinate = nil
|
||||
}
|
||||
|
||||
func updateExplicitName(_ name: String, forFavoriteID favoriteID: UUID) {
|
||||
guard selection.source == .favorite(favoriteID) else { return }
|
||||
selection = MapSelection(
|
||||
|
||||
Reference in New Issue
Block a user