1
0
mirror of git://jb55.com/damus synced 2024-09-19 19:46:51 +00:00

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
This commit is contained in:
William Casarin 2023-05-14 00:14:10 -07:00
parent 02d99f7340
commit 122b528407

View File

@ -85,6 +85,8 @@ struct ZapButton: View {
return
}
UIImpactFeedbackGenerator(style: .rigid).impactOccurred()
switch res {
case .send_err(let cancel_err):
switch cancel_err {