moved hostsmanger back out because nested observedobjects are wierd

added multiView - it connects to all your hosts at once, this proves that i can do many at once
 --- for a future update
This commit is contained in:
neon443
2025-06-24 15:33:56 +01:00
parent 0f5d45cc85
commit bf4a273a46
5 changed files with 41 additions and 19 deletions

View File

@@ -9,12 +9,14 @@ import SwiftUI
struct ContentView: View {
@ObservedObject var handler: SSHHandler
@ObservedObject var hostsManger: HostsManager
@ObservedObject var keyManager: KeyManager
var body: some View {
TabView {
HostsView(
handler: handler,
hostsManager: hostsManger,
keyManager: keyManager
)
.tabItem {
@@ -31,6 +33,7 @@ struct ContentView: View {
#Preview {
ContentView(
handler: SSHHandler(host: Host.debug),
hostsManger: HostsManager(),
keyManager: KeyManager()
)
}