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 return
} }
UIImpactFeedbackGenerator(style: .rigid).impactOccurred()
switch res { switch res {
case .send_err(let cancel_err): case .send_err(let cancel_err):
switch cancel_err { switch cancel_err {