Skip to content

Commit 3bae2c8

Browse files
committed
fix(ios): add Close button to error state so user can return to connections
1 parent 1d2d2bb commit 3bae2c8

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

TableProMobile/TableProMobile/Views/ConnectedTabView.swift

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,19 @@ struct ConnectedTabView: View {
6565
}
6666
.frame(maxWidth: .infinity, maxHeight: .infinity)
6767
} else if let appError {
68-
ErrorView(error: appError) {
69-
await connect()
68+
NavigationStack {
69+
ErrorView(error: appError) {
70+
await connect()
71+
}
72+
.navigationTitle(displayName)
73+
.navigationBarTitleDisplayMode(.inline)
74+
.toolbar {
75+
ToolbarItem(placement: .cancellationAction) {
76+
Button(String(localized: "Close")) {
77+
appState.activeConnection = nil
78+
}
79+
}
80+
}
7081
}
7182
} else {
7283
tabContent

0 commit comments

Comments
 (0)