-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Smoother Transition Between ViewControllers? #63
Comments
I think you need to optimize your code, probably you're doing synchronous calls instead of asynchronous. |
That's not what I meant. I meant it would be pretty cool to have the content cross dissolve in the small viewcontroller when on the side menu, before expanding out. The expanding part works beautiful, I just think the corss dissolve transition would be a beautiful feature to add. |
This is a pretty trivial thing to do, here's an example: DEMOSecondViewController *viewController = [[DEMOSecondViewController alloc] init];
viewController.view.alpha = 0;
[self.sideMenuViewController.contentViewController.view addSubview:viewController.view];
[UIView animateWithDuration:0.3 animations:^{
viewController.view.alpha = 1;
} completion:^(BOOL finished) {
[viewController.view removeFromSuperview];
self.sideMenuViewController.contentViewController = viewController;
}];
[self.sideMenuViewController hideMenuViewController]; This code needs to be executed when you switch between view controllers. |
I may add a helper function, though. |
How would this be done using storyboards, and storyboard identifiers? |
First of all thank you for this beautiful project! It's helped bring my app to life! One thing I do ask is if you could implement a smoother transition between view controllers, in terms of content.
For now when you click say Home on the Menu, the viewController slides into fullscreen beautifully, but the content just pops out of nowhere fast. Could you fade the content inside the view (or the whole view) while it's sliding into fullscreen?
The effect is most evident when you have two viewControllers with tableViews inside and a lot of writing. It just appears choppy.
The text was updated successfully, but these errors were encountered: