mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 12:30:29 +00:00
fix: MainTabView compile error - coordinate tuple to CLLocationCoordinate2D
This commit is contained in:
parent
00200cba68
commit
00384c9dd1
1 changed files with 3 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import SwiftUI
|
||||
import Foundation
|
||||
import CoreLocation
|
||||
|
||||
extension Notification.Name {
|
||||
static let switchToTab = Notification.Name("MainTabSwitchNotification")
|
||||
|
|
@ -134,7 +135,8 @@ struct MainTabView: View {
|
|||
}
|
||||
|
||||
LocationSimulationCommandQueue.shared.async {
|
||||
let wgs84 = CoordinateTransform.gcj02ToWGS84(coordinate)
|
||||
let input = CLLocationCoordinate2D(latitude: coordinate.latitude, longitude: coordinate.longitude)
|
||||
let wgs84 = CoordinateTransform.gcj02ToWGS84(input)
|
||||
let code = simulate_location(
|
||||
DeviceConnectionContext.targetIPAddress,
|
||||
wgs84.latitude,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue