mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
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:
@@ -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()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user