Baseflow / Baseflow/Xamarin-Sidebar
Hide sidebar completely for custom animation segues
- 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
Assessment
This issue has not been assessed yet.