mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-23 00:40:59 +00:00
Add haptic feedbacks when changing account
This commit is contained in:
parent
0709ce0958
commit
82dfeffaec
1 changed files with 2 additions and 0 deletions
|
@ -93,11 +93,13 @@ public struct AppAccountView: View {
|
|||
let account = viewModel.account
|
||||
{
|
||||
routerPath.navigate(to: .accountSettingsWithAccount(account: account, appAccount: viewModel.appAccount))
|
||||
HapticManager.shared.fireHaptic(of: .buttonPress)
|
||||
} else {
|
||||
var transation = Transaction()
|
||||
transation.disablesAnimations = true
|
||||
withTransaction(transation) {
|
||||
appAccounts.currentAccount = viewModel.appAccount
|
||||
HapticManager.shared.fireHaptic(of: .notification(.success))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue