mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-07 09:25:33 +00:00
Upgrades the .taptic-based feedback a notch for code BEEP on iOS.
This commit is contained in:
parent
39494d6e91
commit
07572a4527
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue