Enable native Picture-in-Picture feature for videos in iOS YouTube app.
Activate PiP by playing the video and dismissing the app, or tapping PiP button in video tab bar or control overlay.
Use iOS 15+ SDK and latest THEOS.
Also clone YTVideoOverlay and put it in the same directory as this project.