The previous answers around the status bar are absolutely right, I think.
Remember also that under a recognizing gesture, material is more powerful, but more difficult to program for touch APIs.
The core element is UIEvent, which has touchBegan, touchEnded, touchCancelled, and touchMoved. Check the docs on this, as I am a bit out of memory here ... In any case, you can see that if you even need to open with touchBegan, then starting the gesture outside the touch-sensitive area may not fly. From left to right, it probably works mainly because the area between the screen and the edge is thin enough to touch it, even if you're wrong on the screen. From top to bottom and from bottom to top, however, there are wider areas where you are likely to start outside the scope of the answer.
Cocoadelica
source share