Disabling the hard Touch Touch task switch on the left edge of the screen

If you press hard on the left edge of the screen using the iPhone with a 3D touch, you will open the task switcher.

I would like to know how I can disable this behavior in my application.

+6
source share
2 answers

There is no API for this, just as there is no way to disable any other way to exit your application. If you are so alike, you can submit an improvement request describing what you are trying to do.

+2
source

Although there is no API for this, it seems that the behavior is limited to the Portrait mode. If you run the Apple TouchCanvas example , you will see that this gesture does not work, because the application works in landscape mode. If you modify the project to support both “Portrait” and “Landscape”, you can see that the gesture is included in “Portrait” and disabled in “Landscape”.

So this may be a suitable workaround, depending on your use case.

I registered a radar for this at https://bugreport.apple.com , suggesting that Apple offers an API similar to the installation option:

self.navigationController?.interactivePopGestureRecognizer.enabled = false 

and would suggest that you do the same if you are interested in viewing this function. They will probably close duplicates, but voicing additional support cannot hurt.

+1
source

All Articles