Material: Transitioning the RootViewController of a ToolbarController to an UITableViewController causes flickering

Created on 23 Nov 2016  路  7Comments  路  Source: CosmicMind/Material

Transitioning the RootViewController of a ToolbarController to an UITableViewController causes the Toolbar not being shown for the duration of the transition:

myToolbarController.transition(to: myTableViewController, duration: TimeInterval(1))
-> Toolbar is hidden for 1 sec

Using a duration of 0 causes a bit flickering even with normal UIViewControllers.

help wanted

Most helpful comment

Ahh... I think I know why. Okay, I will take a look later today. I am finishing up some documentation, and then will tackle this issue and some others on the board. Thanks for bringing this to my attention.

All 7 comments

Could you send me a sample of this?

@danieldahan You can take the programmatic NavigationDrawerController sample and make the TransitionedViewController extend UITableViewController instead of UIViewController. I tried this and it shows the mentioned effect.

This could be when the UITableVIewController is setup. Usually this is done after the view loads and could give a stutter effect. I will take a look and see if I can replicate the behavior.

Also, this issue came up and could be the same on StackOverflow - flickering behavior.

But the toolbar is hidden for exactly the same amount of time like the transition's duration is. So if you call transition(to: duration:) with a duration of 10sec, you won't see the toolbar for 10sec.

Ahh... I think I know why. Okay, I will take a look later today. I am finishing up some documentation, and then will tackle this issue and some others on the board. Thanks for bringing this to my attention.

Thanks! 馃槃

Thank you for sharing this issue with me. Please give Material 2.3.18 a try :)

Was this page helpful?
0 / 5 - 0 ratings