New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug on hidesBarsOnTap #56
Comments
It works good on version 0.4, but now don't |
Sorry for the delay in the response. I think I might have a solution here, but since I don't have access to your code I'm gonna need some help. Could you let me know if adding |
I use standard QuickLook library(QLPreviewController) to open files. And this QLPreviewController have default set "hide bars on tap". When I tap on image navigation bar disappears(he moves up through the black area, It seems that the position of the navigation bar is incorrect when hiding) and this func |
Hmm, interesting. Could you possibly upload a minimal demo project by modifying the example app to reproduce your issue? |
Yeah sure, here is example: |
Thank you so much for the example project! So the issue here is that since navigation controllers are usually presented fullscreen, they just translate the bars directly with no clipping. Fortunately there's a simple solution for this. In the navigationController?.view.clipsToBounds = true Clipping has a performance cost sometimes, depending on exactly what drawing is going on, so I'd suggest toggling it with caution, but it does indeed make the animation look as you want it to. |
Thanks a lot, this solved the problem. And thanks for a detailed explanation to, I appreciate it! |
Hello Harshil Shah! Thanks a lot of what are you doing!!
In ios11 I found interesting bug. On hiding navigation bar on tap it disappears like on foto. Can you help with this?
The text was updated successfully, but these errors were encountered: