Baseflow / Baseflow/Xamarin-Sidebar

Hide sidebar completely for custom animation segues

Open
#52 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
112
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.