Created
October 2, 2019 12:40
-
-
Save torarnv/8d22513ab67edfb3d1f620c773ccc807 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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