From b32ecfab276fb8e1dff0e1d72ed819b548323328 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Tue, 16 Jul 2024 06:45:43 +0100 Subject: Working implementation of ADSB loaded from file. Net1090 can read from dump1090 socket --- LearnMapKit/LearnMapKitApp.swift | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'LearnMapKit/LearnMapKitApp.swift') diff --git a/LearnMapKit/LearnMapKitApp.swift b/LearnMapKit/LearnMapKitApp.swift index 5fa170a..1b64510 100644 --- a/LearnMapKit/LearnMapKitApp.swift +++ b/LearnMapKit/LearnMapKitApp.swift @@ -10,8 +10,6 @@ import Collections //https://www.hackingwithswift.com/quick-start/swiftui/how-to-run-code-when-your-app-launches - - @main struct LearnMapKitApp: App { @@ -21,30 +19,6 @@ struct LearnMapKitApp: App { init() { print("Init app") - var update_postions: Deque = [] - DispatchQueue.global(qos: .background).sync { - print("Dispatch") - //var count = 0 - - - //let ADSBtask = ADSBRunner() - //queue.append(MapADSBData(lat: 0.0, long: 0.0, alt: 1)) - /* - let timer = Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { timer in - print("Timer fired! \(count)") - ADSBtask.runFromFile() - update_postions.append(MapADSBData(lat: 0.0, long: 0.0, alt: 1)) - print(update_postions.count) - count += 1 - }*/ - print("Exit dispatch") - } - - //push all new data to state queue from a runner - DispatchQueue.global(qos: .background).sync { - // Update the UI on the main thread - let c = queue.count - } } -- cgit v1.2.3