This change fixes some subtle state bugs in the switch handling by making isOn a direct function of the Tunnel.
21 lines
399 B
Swift
21 lines
399 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()
|
|
}
|
|
}
|
|
}
|