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

TabBar #9

Open
Mindkind-Dev opened this issue Oct 21, 2018 · 0 comments
Open

TabBar #9

Mindkind-Dev opened this issue Oct 21, 2018 · 0 comments

Comments

@Mindkind-Dev
Copy link

Mindkind-Dev commented Oct 21, 2018

Hi.

I'm using this library in my storyboard. Everything works fine except when I embedIn a TabBar.

Exemple:
I am using 3 view controllers as follow:

  • _mainVC which have the TabBar embedIn. root, tab1
  • secondVC which have a listview, tab2
  • thirdVC which is the target vc for the animation transition when click on a listview row._

When I click a row on tab2, the animation to thirdVC is only alpha transition, they are fading each others. The image that goes from the row to the thirdVC doesn't works.

If I add a button to the ViewController in tab1 with:

let toVC = self.storyboard?.instantiateViewController(withIdentifier: "secondVC")
        present(toVC!, animated: true, completion: nil)

When I click it, it show the secondVC, then when I click a row the animation works perfect.

If I set the secondVC as Initial View Controller it bypasses the TabBar and it works.

The problem is the fact the tabBar button doesn't instantiate the VCs when switching.. but I don't know how to fix this.

** UPDATE
When I setup the storyboard to make the animation works correctly and I turn to FALSE
let _ = toVC.view.snapshotView(afterScreenUpdates: true),
It happen the same problem. Maybe the snapshotView dosent works with tabBar!?

Thanks

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

1 participant