burrow/Apple/App/BurrowApp.swift
Conrad Kramer b3a540fc48 Add support for starting and stopping the tunnel
This commit introduces the Tunnel view model object which has
support for asking for permission, starting and stopping the
tunnel. It automatically updates its state and publishes
changes as an ObservableObject.
2023-05-09 23:01:36 -04:00

18 lines
344 B
Swift

import NetworkExtension
import SwiftUI
@main
@MainActor
struct BurrowApp: App {
static let tunnel = Tunnel { manager, proto in
proto.serverAddress = "hackclub.com"
manager.localizedDescription = "Burrow"
}
var body: some Scene {
WindowGroup {
TunnelView(tunnel: Self.tunnel)
}
}
}