In my iOS app developed with Swift, two users can engage in a mutual video call. After a user switches the call to Picture in Picture mode, I want to detect if they swipe right or left to minimize the Picture in Picture view and, accordingly, close the camera.
How can I listen for these swipe gestures and handle them appropriately?
I've tried the Picture in Picture delegates, but I couldn't achieve the desired result.
