question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Back to page animation does not work in XF 5.0.0.2196.

See original GitHub issue

Hi everyone, today I upgraded XF to version 5.0.0.2196 and unfortunately the site animation does not work as before. Next page animation works well but back animation doesn’t. I used to use XF version 5.0.0.2012 and everything worked fine. I enclose a few screenshots. Thanks a lot.

Bug Information

Version Number of Plugin: 2.4.0 Device Tested On: Realme GT Android 11, OnePlus 9 Pro Android 11. Tested on other devices with the same effect Simulator Tested On: Pixel3_XL_API_30 Version of VS: 16.11.5 Version of Xamarin: 5.0.0.2196 Versions of other things you are using: Xamarin.Essentials 1.7.0

Steps to reproduce the Behavior

Just create a new Xamarin Forms project and upgrade XF to the latest build 5.0.0.2196. That is all. You don’t have to add anything else. He tried it in XF.Shell and in a blank window. Same mistake.

Expected Behavior

The animation back to the page should work as in the previous version of XF 5.0.0.2012. see video XF_5.0.0.2012.

Actual Behavior

The back to page animation does not work. see video XF_5.0.0.2196.

Code snippet

in XAML NavigationPage.HasNavigationBar="False" NavigationPage.HasBackButton="False" sharedTransitions:SharedTransitionNavigationPage.TransitionDuration="300" sharedTransitions:SharedTransitionNavigationPage.BackgroundAnimation="SlideFromRight"

in App.cs MainPage = new SharedTransitionNavigationPage(new Page1());

Navigate to the page App.Current.MainPage.Navigation.PushAsync(new Page2());

Navigate back to the page App.Current.MainPage.Navigation.PopAsync();

Screenshots

https://user-images.githubusercontent.com/5471789/141354257-932f97a3-a8e5-468d-baea-2e34f6e59cb7.mp4

https://user-images.githubusercontent.com/5471789/141354325-9c92df2c-f23a-4672-a214-4a2fdf25a619.mp4

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
GiampaoloGabbacommented, May 27, 2022

Unfortunately the latest versions of xf modified a lot of things in navigations. for example the NavigationaPage (and i suspect Shell too)) in Android is completely broken for this plugin. The problem is that the fragments generation in the destination page now happens too late to attach a shared transition inside the available overrides provided by XF, there is no fix for that oter than rewrite all the platform navigation logic (not going to happen).

Also something is changed in the iOS navigation that broke the back button.

I spent a few hours trying to fix those issue but the Android one hit me hard, is unfixable 😦

So i cannot be able to support this for XForms 5 anymore (the first version of XF5 should still work) and i’m going full in with MAUI with a full rewrite.

MAUI handlers are way more flexibile and expandable than XF renderers.

I think that this plugin was too “hacky” for XF and too suscetible at every minor changes made by the XF team in the navigation logic, incapsulated in renderers with very few entry point available to extend.

I have some nice idea for MAUI, i want to be able to make shared transition on grouped view more easily and semplify by A LOT all the source code, expecially the iOS one (where there are not OS support for shared transitions and i had to do some crazy things to emulate them).

1reaction
ghostcommented, Nov 11, 2021

Yes, it seems that this project will be unusable in the future. Therefore, I applied for the inclusion of this project in the XamarinCommunityToolkit. It would be great to have this option with a box with additional features in one XCT project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · GiampaoloGabba/Xamarin.Plugin.SharedTransitions
[BUG] Back to page animation does not work in XF 5.0.0.2196. ... ProTip! Mix and match filters to narrow down what you're looking...
Read more >
Xamarin.Forms 5.0.0.2196 (5.0.0 Service Release 6) ...
Release notes detailing new features, improvements, and issues fixed in Xamarin.Forms 5.0.0.2196 (5.0.0 Service Release 6)
Read more >
Xamarin.Forms 5.0.0.2612 (5.0.0 Service Release 15) ...
Release notes detailing new features, improvements, and issues fixed in Xamarin.Forms 5.0.0.2612 (5.0.0 Service Release 15)
Read more >
Xamarin.Forms 2.2.0.4-pre1
Version Downloads Last updated 5.0.0.2599‑pre1 11,433 3 months ago 5.0.0.2578 324,756 5 months ago 5.0.0.2545 439,008 8 months ago
Read more >
Xamarin.Forms 2.3.4.192-pre2
This is a prerelease version of Xamarin.Forms. There is a newer version of this package available. See the version list below for details....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found