blob: 6c46f3b9acbe462438975f64c3aaa1d4e1ed8d84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
//
// LearnMapKitApp.swift
// LearnMapKit
//
// Created by Jacky Jack on 05/06/2024.
//
import SwiftUI
import Collections
import ArgumentParser
//https://www.hackingwithswift.com/quick-start/swiftui/how-to-run-code-when-your-app-launches
@main
struct LearnMapKitApp: App {
@State var queue: Deque<ADSBLocation> = []
@StateObject private var flightState = FlightState()
init() {
print("Init app")
}
var body: some Scene {
WindowGroup {
ContentView(pos_queue: $queue)
}.environmentObject(flightState)
WindowGroup("Network", id: "net-config") {
NetConfigView()
}
}
}
|