diff --git a/ios/Capacitor/Capacitor/Plugins/Haptics.swift b/ios/Capacitor/Capacitor/Plugins/Haptics.swift index ce8a0032d..c025ebc8a 100644 --- a/ios/Capacitor/Capacitor/Plugins/Haptics.swift +++ b/ios/Capacitor/Capacitor/Plugins/Haptics.swift @@ -58,7 +58,9 @@ public class CAPHapticsPlugin: CAPPlugin { } @objc public func selectionEnd(_ call: CAPPluginCall) { - selectionFeedbackGenerator = nil + DispatchQueue.main.async { + self.selectionFeedbackGenerator = nil + } } @objc public func vibrate(_ call: CAPPluginCall) {