Clickable notifications — limit opens popover, update opens update sheet

This commit is contained in:
superdooper86
2026-05-07 17:07:17 +02:00
parent 081d4804ab
commit c0bf2e4873
3 changed files with 55 additions and 27 deletions
+4
View File
@@ -94,6 +94,10 @@ struct ContentView: View {
}
.frame(width: 480)
.animation(.easeInOut(duration: 0.2), value: showSettings)
.onReceive(NotificationCenter.default.publisher(for: .openUpdateSheet)) { _ in
showSettings = false
showUpdateSheet = true
}
.sheet(isPresented: $showLogin) {
LoginSheetView(isPresented: $showLogin) {
Task { await vm.refresh() }