mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +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
|
let account = viewModel.account
|
||||||
{
|
{
|
||||||
routerPath.navigate(to: .accountSettingsWithAccount(account: account, appAccount: viewModel.appAccount))
|
routerPath.navigate(to: .accountSettingsWithAccount(account: account, appAccount: viewModel.appAccount))
|
||||||
|
HapticManager.shared.fireHaptic(of: .buttonPress)
|
||||||
} else {
|
} else {
|
||||||
var transation = Transaction()
|
var transation = Transaction()
|
||||||
transation.disablesAnimations = true
|
transation.disablesAnimations = true
|
||||||
withTransaction(transation) {
|
withTransaction(transation) {
|
||||||
appAccounts.currentAccount = viewModel.appAccount
|
appAccounts.currentAccount = viewModel.appAccount
|
||||||
|
HapticManager.shared.fireHaptic(of: .notification(.success))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue