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

wrong extend edges effect #56

Closed
imnak0 opened this issue Jan 24, 2017 · 5 comments
Closed

wrong extend edges effect #56

imnak0 opened this issue Jan 24, 2017 · 5 comments

Comments

@imnak0
Copy link

imnak0 commented Jan 24, 2017

I have UITabBarController, and first tab displays NavigationController.
The Root ViewController shows fine.
But if I push the second ViewController with hero enabled, then it extends edges under Tabbars, even though I unchecked the "Under Bottom Bars" in the Storyboard Option.

image

The weird thing is that if I select other tab and comes back to previous tab, then the viewcontroller shows correctly, not under-the-bottom-bars.

ezgif com-1e06c4e359

Any advice is greatly appreciated,

@lkzhao
Copy link
Collaborator

lkzhao commented Jan 24, 2017

I am sick this week so won't be able to help you quickly. Could be a bug with Hero. Don't worry about it for now. I will see what I can do when I get better.

In the mean time you can hack a fix by setting the frame on your second view controller's view manually during viewWillAppear.

@lkzhao
Copy link
Collaborator

lkzhao commented Jan 29, 2017

To make sure. You have a nav controller inside the first view controller of your tab bar controller, correct?

@lkzhao
Copy link
Collaborator

lkzhao commented Jan 29, 2017

I am not seeing this when using auto layout. I pinned the square to the bottom edge. Not sure what your setup is. Can you upload a small demo? Are you laying out the views programmatically?

@imnak0
Copy link
Author

imnak0 commented Jan 31, 2017

here's demo for you
https://github.com/imnak0/HeroDemo

I'm not familiar with storyboard so please let me know if there's something wrong in my side, not on the hero code
Thanks a lot,

@lkzhao
Copy link
Collaborator

lkzhao commented Feb 2, 2017

Should be fixed on the latest master, try:

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

This is related to #60. Hero didn't set the frame correctly.

@lkzhao lkzhao closed this as completed Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants