damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 122b5284075eb5d8a4901fb66f7f31fbb9427f70
parent 02d99f734065a17a3271e1a4481cf3cbeb3039d3
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 14 May 2023 00:14:10 -0700

Add rigid haptic feedback when you zap cancel fails

This feels different than the soft haptic feedback so it should let
people know that cancelling is no longer possible

Diffstat:
Mdamus/Components/ZapButton.swift | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/damus/Components/ZapButton.swift b/damus/Components/ZapButton.swift @@ -85,6 +85,8 @@ struct ZapButton: View { return } + UIImpactFeedbackGenerator(style: .rigid).impactOccurred() + switch res { case .send_err(let cancel_err): switch cancel_err {