From 122b5284075eb5d8a4901fb66f7f31fbb9427f70 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 14 May 2023 00:14:10 -0700 Subject: [PATCH] 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 --- damus/Components/ZapButton.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/damus/Components/ZapButton.swift b/damus/Components/ZapButton.swift index 8a51b75e..c598ca1e 100644 --- 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 {