diff --git a/TalerWallet1/Views/Main/WalletMain.swift b/TalerWallet1/Views/Main/WalletMain.swift index 974c788d..24b6582c 100755 --- a/TalerWallet1/Views/Main/WalletMain.swift +++ b/TalerWallet1/Views/Main/WalletMain.swift @@ -332,6 +332,9 @@ struct WalletMain: View { } ActionsBubble(showIt: $showBubble, isShowing: isShowing) } // ZStack + .simultaneousGesture(TapGesture().onEnded { + if showBubble { showBubble = false } // any tap dismisses the hint, and still reaches its target + }) .frame(maxWidth: .infinity, maxHeight: .infinity) .onNotification(.SendAction) { notification in if let actionType = notification.userInfo?[NOTIFICATIONANIMATION] as? ActionType { @@ -463,10 +466,10 @@ struct ActionsBubble: View { .padding(.horizontal, 30) } .padding(.bottom, Bool.iOS26 ? 70 : 90) - .contentShape(.rect) - .onTapGesture { - showIt = false - } + // The bubble lies over whatever is at the bottom of the screen - on an empty wallet + // that is the "Get demo cash" button. It must not take the tap meant for the button + // below it; the ZStack dismisses the bubble on any tap instead. + .allowsHitTesting(false) } } }