Skip to content

Instantly share code, notes, and snippets.

@torarnv
Created October 2, 2019 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torarnv/8d22513ab67edfb3d1f620c773ccc807 to your computer and use it in GitHub Desktop.
Save torarnv/8d22513ab67edfb3d1f620c773ccc807 to your computer and use it in GitHub Desktop.
diff --git i/src/plugins/platforms/ios/quiview.mm w/src/plugins/platforms/ios/quiview.mm
index e64c05d099..044d8e3359 100644
--- i/src/plugins/platforms/ios/quiview.mm
+++ w/src/plugins/platforms/ios/quiview.mm
@@ -344,6 +344,16 @@ Q_LOGGING_CATEGORY(lcQpaTablet, "qt.qpa.input.tablet")
// -------------------------------------------------------------------------
+- (void)addInteraction:(id<UIInteraction>)interaction
+{
+ if (__builtin_available(iOS 13.0, *)) {
+ if ([interaction isKindOfClass:UITextInteraction.class])
+ return; // Prevent iOS from adding UITextInteraction
+ }
+
+ [super addInteraction:interaction];
+}
+
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection
{
[super traitCollectionDidChange: previousTraitCollection];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment