Changes
1 changed files (+19/-2)
-
-
@@ -18,10 +18,12 @@ import RoonKitimport SwiftUI struct ConnectionScreen: View { @State private var serverID: String @State private var conn: ConnectionDataModel init(serverID: String) { self.conn = ConnectionDataModel(serverID: serverID) self.serverID = serverID } var body: some View {
-
@@ -57,8 +59,23 @@ "Server not found",systemImage: "exclamationmark.magnifyingglass" ) } description: { // TODO: Display ID Text("Server not found") Text("Server of ID=\(serverID) does not found.") } actions: { Button(role: .cancel) { Task { await conn.disconnect() } } label: { Text("Cancel") } Button { Task { await conn.connect() } } label: { Text("Retry") } } case .error(_): ContentUnavailableView {
-