From 1fff0abce5ce3bc05f103c1f2f8aaadfea24a3be Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 14 May 2023 11:04:56 -0700 Subject: [PATCH] Make it easier to tap zap button Right now the tap target only covered the bolt, now it's bolt+amount --- damus/Components/ZapButton.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/damus/Components/ZapButton.swift b/damus/Components/ZapButton.swift index c4ef26ad..1fd4002d 100644 --- a/damus/Components/ZapButton.swift +++ b/damus/Components/ZapButton.swift @@ -124,13 +124,6 @@ struct ZapButton: View { .foregroundColor(zap_color) .font(.footnote.weight(.medium)) }) - .simultaneousGesture(LongPressGesture().onEnded {_ in - button.showing_zap_customizer = true - }) - .highPriorityGesture(TapGesture().onEnded { - tap() - }) - .accessibilityLabel(NSLocalizedString("Zap", comment: "Accessibility label for zap button")) if zaps.zap_total > 0 { Text(verbatim: format_msats_abbrev(zaps.zap_total)) @@ -138,6 +131,13 @@ struct ZapButton: View { .foregroundColor(zap_color) } } + .accessibilityLabel(NSLocalizedString("Zap", comment: "Accessibility label for zap button")) + .simultaneousGesture(LongPressGesture().onEnded {_ in + button.showing_zap_customizer = true + }) + .highPriorityGesture(TapGesture().onEnded { + tap() + }) .sheet(isPresented: $button.showing_zap_customizer) { CustomizeZapView(state: damus_state, event: event, lnurl: lnurl) }