From 4927b12e90857ef5e8bdf1eabf6486f262b53c8f Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Tue, 24 Jan 2023 11:40:18 +0100 Subject: [PATCH] Fix haptic feedback for account selector --- .../Sources/AppAccount/AppAccountsSelectorView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift b/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift index 855675cc..eb0af227 100644 --- a/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift +++ b/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift @@ -41,8 +41,10 @@ public struct AppAccountsSelectorView: View { } } } - .onAppear { + .onTapGesture { feedbackGenerator.impactOccurred(intensity: 0.3) + } + .onAppear { refreshAccounts() } .onChange(of: currentAccount.account?.id) { _ in