AlexandrNikulin / AnimationNavigationPage

AnimationNavigationPage is a NavigationPage with custom transitions animation effects.
Apache License 2.0
237 stars 37 forks source link

Swipe back will navigate to an empty page on iOS #52

Closed sswi closed 4 years ago

sswi commented 5 years ago

On iOS, when I navigate from the Home page to page 1th, if I swipe right on the screen instead of clicking the Back button to return, it will navigate to an unknown pure white page.

app.xaml.cs MainPage = new AnimationNavigationPage( new MainPage());

MainPage XAML

<controls:AnimationPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:App8"
              xmlns:controls="clr-namespace:FormsControls.Base;assembly=FormsControls.Base"
             x:Class="App8.MainPage">
    <controls:AnimationPage.PageAnimation>
        <controls:SlidePageAnimation Duration="Medium" Subtype="FromTop"/>
    </controls:AnimationPage.PageAnimation>

        <Button Text=" ToPage1" Clicked="Button_Clicked"/>
</controls:AnimationPage>
        private void Button_Clicked(object sender, EventArgs e)
        {            
            Navigation.PushAsync(new Page1());
        }

Page1 XAML:

<controls:AnimationPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
              xmlns:controls="clr-namespace:FormsControls.Base;assembly=FormsControls.Base"
             x:Class="App8.Page1">
    <controls:AnimationPage.PageAnimation>
        <controls:FlipPageAnimation Duration="Medium" Subtype="FromRight"/>
    </controls:AnimationPage.PageAnimation>

 <Label Text="Page1"/>
</controls:AnimationPage>
AlexandrNikulin commented 5 years ago

@sswi maybe this is something wrong with FlipPageAnimation. Try to user any other type (for example Slide)

sswi commented 5 years ago

I tried to use all the animation effects and still navigate to the white page. Thanks.

SUDALV92 commented 5 years ago

this issue still exists

pmahend1 commented 4 years ago

@SUDALV92 Could you please check on latest release?

AlexandrNikulin commented 4 years ago

I think it fixed. Thanks @pmahend1