A Swift floating player like YouTube player, using AVPlayer. I've imported AVKit and tried to make a custom player. It's Based on DraggableYoutubeFloatingVideo.
I’ve implemented the player using Xib file after that I’ve set frames for every single object at portrait and landscape mode. Please check the recored Demo to find how it works.