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

Hide sidebar completely for custom animation segues #52

Open
conrad90909 opened this issue Jul 25, 2016 · 1 comment
Open

Hide sidebar completely for custom animation segues #52

conrad90909 opened this issue Jul 25, 2016 · 1 comment

Comments

@conrad90909
Copy link

Hi Jack,

I have your menu throughout my app, on some pages I have to use PushViewController to display a new UIViewController for one reason or another, my issue is that when I do anything but the standard animation I see the menu in the animation, just a glimpse of it, but it makes the transition look bad. My code is below, this should help you re-create the issue.

`static public void AnimatePushController(UINavigationController NavCon, BaseController DestinationViewController)
{
CATransition transition = new CATransition()
{
Duration = 0.35,
TimingFunction = CAMediaTimingFunction.FromName(CAMediaTimingFunction.EaseOut),
Type = CAAnimation.TransitionPush,
Subtype = CAAnimation.TransitionFromRight
};

        NavCon.View.Layer.AddAnimation(transition, CALayer.Transition);
        NavCon.PushViewController(DestinationViewController, false);
    }`

I tried setting the menu width to 0 or disabling it before the transition, what we really need is a hide or hidden state if possible.

I know I keep saying it, but great control!

Many thanks,

Conrad

@Aufty
Copy link

Aufty commented Jan 22, 2019

+1 for this

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

2 participants