From 2ff98311c6ba5acfa0bf14c0ac291f2565e12a46 Mon Sep 17 00:00:00 2001 From: Pantelis Giazitsis Date: Tue, 14 Oct 2025 12:42:02 +0300 Subject: [PATCH] Set notifications toggle enabled --- .../UIComponents/Screens/Settings/SettingsView.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/PresentationLayer/UIComponents/Screens/Settings/SettingsView.swift b/PresentationLayer/UIComponents/Screens/Settings/SettingsView.swift index 8c9eb7bfe..84966b5aa 100644 --- a/PresentationLayer/UIComponents/Screens/Settings/SettingsView.swift +++ b/PresentationLayer/UIComponents/Screens/Settings/SettingsView.swift @@ -120,10 +120,13 @@ private extension SettingsView { var notificationsSwitch: some View { SettingsButtonView(settingsCase: .notifications, settingCaption: SettingsEnum.notifications.settingsDescription, - isToggleInteractionEnabled: false, - switchValue: $settingsViewModel.areNotificationsEnabled) { + isToggleInteractionEnabled: true, + switchValue: Binding(get: { + settingsViewModel.areNotificationsEnabled + }, + set: { _ in settingsViewModel.handleNotificationSwitchTap() - } + })) } @ViewBuilder