added animated screen flash for bell

screen will flash with a semi transparent white overlay and a bell emoji for 250ms
remove bell from nav bar, too distracting with the bell in the muiddle as well
This commit is contained in:
neon443
2025-06-26 13:53:18 +01:00
parent a41edbb1aa
commit bb0ea0f9ee
2 changed files with 15 additions and 5 deletions

View File

@@ -150,9 +150,10 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
}
func ring() {
bell = true
DispatchQueue.main.asyncAfter(deadline: .now()+0.2) {
self.bell = false
Task { @MainActor in
withAnimation { self.bell = true }
try? await Task.sleep(nanoseconds: 250_000_000) // 250ms
withAnimation { self.bell = false }
}
}