burrow/Apple/App/BurrowApp.swift
Conrad Kramer 2b9ecb7b6a Update Tunnel on the main thread
Also updated it to use the new Swift Observable macro
2024-01-20 10:02:19 -08:00

21 lines
418 B
Swift

import SwiftUI
@main
@MainActor
struct BurrowApp: App {
static let tunnel = Tunnel { manager, proto in
proto.serverAddress = "hackclub.com"
manager.localizedDescription = "Burrow"
}
#if os(macOS)
@NSApplicationDelegateAdaptor(AppDelegate.self)
var delegate
#endif
var body: some Scene {
WindowGroup {
TunnelView(tunnel: Self.tunnel)
}
}
}