I am using Swift 3 and I want to add swipe gesture to AVPlayer. Somebody told me that in order to do this I have to use another view and bring that view to the
You should do this:playerController.view.addSubview(self.sView) instead of self.view.addSubview(sView)
And you should add self as tagart just like this:
let swipeRight = UISwipeGestureRecognizer(target: self, action: #selector(respondToSwipeGesture))
It will work . This is my console:https://i.stack.imgur.com/agaBx.jpg