mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-26 06:54:32 +01:00
More accurate tab selection sound / haptic
This commit is contained in:
parent
4001ffdbe5
commit
c36b9083ce
@ -166,12 +166,12 @@ struct IceCubesApp: App {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
selectedTab = newTab
|
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
|
||||||
HapticManager.shared.fireHaptic(of: .tabSelection)
|
HapticManager.shared.fireHaptic(of: .tabSelection)
|
||||||
SoundEffectManager.shared.playSound(of: .tabSelection)
|
SoundEffectManager.shared.playSound(of: .tabSelection)
|
||||||
|
|
||||||
|
selectedTab = newTab
|
||||||
|
|
||||||
|
DispatchQueue.main.async {
|
||||||
if selectedTab == .notifications,
|
if selectedTab == .notifications,
|
||||||
let token = appAccountsManager.currentAccount.oauthToken
|
let token = appAccountsManager.currentAccount.oauthToken
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user