From 07572a45270c9ae4eacf94bb6bbdeff2bbba4423 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Wed, 5 Dec 2018 11:50:56 +0700 Subject: [PATCH] Upgrades the .taptic-based feedback a notch for code BEEP on iOS. --- .../KMEI/KeymanEngine/Classes/KeymanWebViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/engine/KMEI/KeymanEngine/Classes/KeymanWebViewController.swift b/ios/engine/KMEI/KeymanEngine/Classes/KeymanWebViewController.swift index ea1737e5e8..433c117c88 100644 --- a/ios/engine/KMEI/KeymanEngine/Classes/KeymanWebViewController.swift +++ b/ios/engine/KMEI/KeymanEngine/Classes/KeymanWebViewController.swift @@ -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