How can I listening hiding the Picture in Picture mode in a Swift iOS app by swiping left or right?

66 Views Asked by At

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?

pip mode active and hided

I've tried the Picture in Picture delegates, but I couldn't achieve the desired result.

0

There are 0 best solutions below