Upgrades the .taptic-based feedback a notch for code BEEP on iOS.

This commit is contained in:
Joshua A. Horton 2018-12-05 11:50:56 +07:00
parent 39494d6e91
commit 07572a4527

View file

@ -355,7 +355,8 @@ extension KeymanWebViewController: WKScriptMessageHandler {
// Available with iPhone 7 and beyond, we can now produce nicely customized haptic feedback.
// We use this style b/c it's short, and in essence it is a minor UI element collision -
// a single key with blocked (erroneous) output.
let vibrator = UIImpactFeedbackGenerator(style: UIImpactFeedbackStyle.medium)
// Oddly, is a closer match to SystemSoundID 1520 than 1521.
let vibrator = UIImpactFeedbackGenerator(style: UIImpactFeedbackStyle.heavy)
vibrator.impactOccurred()
} else {
// Fallback on earlier feedback style