Skip to content

Commit

Permalink
fix(ios): remove thread warning on Haptics.selectionEnd() (#2860)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed May 1, 2020
1 parent 34dd280 commit 471ed0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/Capacitor/Capacitor/Plugins/Haptics.swift
Expand Up @@ -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) {
Expand Down

0 comments on commit 471ed0c

Please sign in to comment.