diff --git a/detox/ios/Detox/DetoxAppDelegateProxy.m b/detox/ios/Detox/DetoxAppDelegateProxy.m index 7a5852768c..d962759d30 100644 --- a/detox/ios/Detox/DetoxAppDelegateProxy.m +++ b/detox/ios/Detox/DetoxAppDelegateProxy.m @@ -27,6 +27,8 @@ static COSTouchVisualizerWindow* _touchVisualizerWindow; +static BOOL _disableTouchIndicator; + static NSURL* _launchUserNotificationDataURL() { NSString* userNotificationDataPath = [[NSUserDefaults standardUserDefaults] objectForKey:@"detoxUserNotificationDataURL"]; @@ -128,6 +130,8 @@ + (void)load _pendingOpenURLs = [NSMutableArray new]; _pendingUserNotificationDispatchers = [NSMutableArray new]; + _disableTouchIndicator = [NSUserDefaults.standardUserDefaults boolForKey:@"disableTouchIndicator"]; + NSURL* url; #if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_10_3 @@ -321,7 +325,7 @@ - (void)applicationWillEnterForeground:(UIApplication *)application - (BOOL)touchVisualizerWindowShouldAlwaysShowFingertip:(COSTouchVisualizerWindow *)window { - return YES; + return _disableTouchIndicator == NO; } #if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_10_3