Skip to content
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

Second view controller offset incorrect in navigation controller when navigationBar.isTranslucent is set to false #63

Closed
yonicsurny opened this issue Feb 2, 2017 · 7 comments

Comments

@yonicsurny
Copy link

Hello,

First, thank you for this amazing library \o/

I've noticed that when I push a controller on a navigation controller stack with hero enabled, the new view controller appears with an incorrect offset (below the navigation bar) when the navigationBar.isTranslucent property is set to false.

Regards.

@lkzhao
Copy link
Collaborator

lkzhao commented Feb 2, 2017

When you disable Hero, does this problem go away? Can you give me two screenshot? One with Hero enabled and one with it disabled

@yonicsurny
Copy link
Author

Yes, disabling Hero or setting the isTranslucent property back to true solves the problem.

I can't provide you comparative screenshots right now, as I'm working with on a project with sensitive data but basically the content of the second view controller appears below the navigation bar.

I'll try and make a demo project ASAP.

@lkzhao
Copy link
Collaborator

lkzhao commented Feb 2, 2017

@Saeros Can you try the latest master? Your problem might be fixed by #60

pod "Hero", :git=>"https://github.com/lkzhao/Hero.git"

@yonicsurny
Copy link
Author

Thanks @lkzhao I'll give it a go and report back the result.

@yonicsurny
Copy link
Author

It appears the issue is fixed! Cheers 👍

@lkzhao lkzhao closed this as completed Feb 2, 2017
@wvabrinskas
Copy link

iOS 11 iPhone 7 I'm still seeing this issue. =( even with isTranslucent set to true. I have a UITabBarController as well.

@metisdev
Copy link

metisdev commented Jan 19, 2018

First of all awesome library 👍

I have a tabbar (with 5 tabs) in a navigation controller.
Last view controller of tabbar hides navigationbar.
This causes the last view having a space below the view and the tabbar.
If i disable hero it works without any problems.
Also while hero is active, if a push another view (while last tab is active) and pop back, view displays correctly.
Hero version 1.0.1 - IOS 11.2 + iPhone6+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants