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

[BUG] NavigationPage Navigation Is Not Animated on iOS [Prism.Maui] #2842

Closed
Axemasta opened this issue Mar 16, 2023 · 3 comments
Closed

[BUG] NavigationPage Navigation Is Not Animated on iOS [Prism.Maui] #2842

Axemasta opened this issue Mar 16, 2023 · 3 comments

Comments

@Axemasta
Copy link
Contributor

Axemasta commented Mar 16, 2023

Description

I have noticed when using navigation within a NavigationPage on iOS that forwards navigation is not animated and the page will pop onto the navigation stack without an animation. Here is a gif demonstrating the issue, you first see an app navigating using Shell (the purple tab bar) and the second app with the list of esports teams which is using prism navigation:

I noticed this after porting a sample app over from XF to Maui & reproduced it in the esports sample app which is shown in the above gif.

This behaviour is the same when using the navigation builder or the uri based approach:

var result = await navigationService.CreateBuilder()
    .AddSegment<TeamViewModel>()
    .AddParameter("SelectedTeam", lecTeam)
    .NavigateAsync();

// OR

var result = await navigationService.NavigateAsync("TeamPage", navParams);

I have tried adding the KnownNavigationParameters.Animated into the nav params with the value true and this does not appear to affect the behaviour.

Steps to Reproduce

  • Create a prism app & set the main page to be wrapped in a navigation page
  • Navigate to a new page
  • Run on iOS

Expected:
Page is pushed onto nav stack from right to left

Actual:
Page appears on nav stack, going back does animate

Platform with bug

.NET MAUI

Affected platforms

iOS

Prism version:
Prism.DryIoc.Maui 8.1.285-pre

Did you find any workaround?

Not yet

Relevant log output

The only logs in my console are:

Microsoft.Maui.Controls.BindableObject: Warning: Cannot convert True to type 'Prism.Mvvm.ViewModelLocatorBehavior'
@brianlagunas
Copy link
Member

Please provide the required reproduction app or this issue will be closed.

@Axemasta
Copy link
Contributor Author

Hi Brian, the reproduction of this issue is here

@dansiegel
Copy link
Member

fixed by #3051

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants