From c36b9083ce4e72777cf02803b35f5e5b363c5ed7 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Thu, 9 Mar 2023 08:30:13 +0100 Subject: [PATCH] More accurate tab selection sound / haptic --- IceCubesApp/App/IceCubesApp.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IceCubesApp/App/IceCubesApp.swift b/IceCubesApp/App/IceCubesApp.swift index 714e5499..e7389dac 100644 --- a/IceCubesApp/App/IceCubesApp.swift +++ b/IceCubesApp/App/IceCubesApp.swift @@ -166,12 +166,12 @@ struct IceCubesApp: App { } } + HapticManager.shared.fireHaptic(of: .tabSelection) + SoundEffectManager.shared.playSound(of: .tabSelection) + selectedTab = newTab DispatchQueue.main.async { - HapticManager.shared.fireHaptic(of: .tabSelection) - SoundEffectManager.shared.playSound(of: .tabSelection) - if selectedTab == .notifications, let token = appAccountsManager.currentAccount.oauthToken {