burrow/Apple/App/TunnelView.swift
2023-06-19 22:58:14 -04:00

36 lines
877 B
Swift

import SwiftUI
struct TunnelView: View {
// @ObservedObject var tunnel: Tunnel
var body: some View {
EmptyView()
// VStack {
// Text(verbatim: tunnel.status.description)
// switch tunnel.status {
// case .connected:
// Button("Disconnect", action: stop)
// case .permissionRequired:
// Button("Allow", action: configure)
// case .disconnected:
// Button("Start", action: start)
// default:
// EmptyView()
// }
// }
// .task { await tunnel.update() }
// .padding()
}
// private func start() {
// try? tunnel.start()
// }
//
// private func stop() {
// tunnel.stop()
// }
//
// private func configure() {
// Task { try await tunnel.configure() }
// }
}