CosmicMind / Material

A UI/UX framework for creating beautiful applications.
http://cosmicmind.com
MIT License
11.99k stars 1.26k forks source link

Stuttering with transitioning from a ViewController with CardViews to another blank view #315

Closed akhilm3 closed 8 years ago

akhilm3 commented 8 years ago

I am getting quite a bit of stuttering when i transition from a view controller that has CardViews to another ViewController

self.navigationController?.pushViewController(exampleLoadViewController(), animated: true)

where self.navigationController? is the VC with cardviews and exampleLoadViewController() is the VC I am trying to transition to.

Example of this:

error

daniel-jonathan commented 8 years ago

Hey,

Are you testing against a view that does not have a transparent background? The lag may be due to the animation from the right taking place, but you are not seeing it since that VC exampleLoadViewController does not have a background.

akhilm3 commented 8 years ago

exampleLoadViewController is basically a blank view controller that I added in my storyboard. So I am assuming that it has a default background

daniel-jonathan commented 8 years ago

Try adding one, because I don't see it in the animation you sent me.

akhilm3 commented 8 years ago

I set the target VC to the default background color and the problem persists. I also noticed the same problem with other buttons (that are not Material) So I think the problem may not arise from Material

daniel-jonathan commented 8 years ago

If you would like to package an example project and send it to support@cosmicmind.io we may be able to help. All the best :)

ndlinh commented 8 years ago

I got the same problem when using NavigationController

daniel-jonathan commented 8 years ago

Do you have a background color set on the view controller you are pushing?

mohpor commented 8 years ago

@ndlinh as @danieldahan has mentioned before, it normally means one of the view controllers involved in the transition, has a transparent background. Can you confirm that it's not true in your case?