0

I am trying to implement the functionality of Youtube's video player. ATM I have a FloatingViewController (the video player) which gets presented modally (overCurrentContext) on a MainViewController which has it's definesPresentationContext set to true.

Everything works fine except the touch recognition (no scrolling) on the MainViewController when I pull down the player into minimized mode. I am pretty sure that this is happening because the FloatingViewController's view (with a clear background) is over every view in the MainVC as it got presented over it.

Mostly looking for any solutions or workarounds...

preview

Yellow thingy is the FloatingVC. The rest is MainVC...

2 Answers 2

1

The problem was (as I've mentioned) another view (a UITransitionView) underlying the FloatingVC. This view is there because of the present(...) method call. Fixed it by using addChildVC instead and also animating the addition of the VC's view...

Sign up to request clarification or add additional context in comments.

Comments

0

Try to check overlapping one view by the other one using debug view hierarchy in xcode.

debug view hierarchy in xcode

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.