[ADD] WIP: Promoted category cards and app list filter button in BrowseView

This commit is contained in:
Fabian Thies
2022-12-21 17:49:49 +01:00
committed by Joe Mattiello
parent 5a1496a3cd
commit c7ce32a562
2 changed files with 84 additions and 10 deletions

View File

@@ -62,10 +62,13 @@ class NotificationManager: ObservableObject {
detailText = underlyingError?.localizedDescription ?? error.localizedRecoverySuggestion
}
self.showNotification(title: text, detailText: detailText)
}
func showNotification(title: String, detailText: String?) {
let notificationId = UUID()
self.notifications[notificationId] = Notification(id: notificationId, title: text, message: detailText)
self.notifications[notificationId] = Notification(id: notificationId, title: title, message: detailText)
let dismissWorkItem = DispatchWorkItem {
self.notifications.removeValue(forKey: notificationId)