Prevent sheet dismissal (#72)

This commit is contained in:
Nindi Gill 2023-07-03 16:24:56 +10:00 committed by GitHub
parent 4981f311c7
commit 7656a3bdf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -88,9 +88,11 @@ struct ActivityView: View {
Button(buttonText) {
stop()
}
.keyboardShortcut(.escape, modifiers: [])
}
.padding()
}
.interactiveDismissDisabled()
.frame(width: width, height: height)
.onAppear {
Task {

View file

@ -46,6 +46,7 @@ struct RefreshView: View {
}
.padding(.vertical)
}
.interactiveDismissDisabled()
.frame(width: width, height: height)
.onAppear {
Task {