My view hierarchy is something like this:
UIView -> UIStackView
-> UIView
-> PlayerView
-> UIView
-> UIStackView
UITextField (title)
UIButton (close)
UIButton (settings) etc...
My problem is following...When screen loads, if I click on the close or settings buttons it WORKS.
The problem is if I click first to the Player View to play video, then I stop a video and when I tap on any of the UIButtons it doesn't work. Button is active, but touch event doesn't fire. You can see player implementation here: github playerview example
The weird thing is...if I click on the UITextField (Title) then I'm able to click on the UIButtons again, and touch events are firing.
I have played with adding isUserInteractionEnabled = true
to the UIView where I have the buttons but it didn't work.