From 2fdaed7df4be5078d36e052e53a49e87a75ab27e Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Tue, 19 Dec 2023 09:58:35 +0100 Subject: [PATCH] Add direct access to push notifications settings in notifications tab --- IceCubesApp/App/Tabs/NotificationTab.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IceCubesApp/App/Tabs/NotificationTab.swift b/IceCubesApp/App/Tabs/NotificationTab.swift index 4dc5d236..6a300443 100644 --- a/IceCubesApp/App/Tabs/NotificationTab.swift +++ b/IceCubesApp/App/Tabs/NotificationTab.swift @@ -31,6 +31,13 @@ struct NotificationsTab: View { .withAppRouter() .withSheetDestinations(sheetDestinations: $routerPath.presentedSheet) .toolbar { + ToolbarItem(placement: .topBarTrailing) { + Button { + routerPath.presentedSheet = .accountPushNotficationsSettings + } label: { + Image(systemName: "bell.badge") + } + } if !isSecondaryColumn { statusEditorToolbarItem(routerPath: routerPath, visibility: userPreferences.postVisibility)