-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
TransitioningContentControl (and other Transitions?) not working properly on iOS after web authentication #13110
Comments
@LyleRolleman-plst please provide a minimum sample to reproduce. Probably it's an issue of call order simply |
I've attached a quick and dirty app demonstrating the problem. Note, no actual sign in was setup, but you can trigger the bug by just tapping Cancel on the browser window |
Better to use DataTemplates instead of placing a UserControl into the ViewModel. In the MVVM world, you try to strictly have Model - View - and VeiwModel separated. Instead, please check out https://github.com/AvaloniaUI/Avalonia.Samples#%EF%B8%8F-datatemplate-samples and https://github.com/AvaloniaUI/Avalonia.Samples/tree/main/src/Avalonia.Samples/Routing/BasicViewLocatorSample how to use DataTemplates for navigation |
@timunie Oh I know, this is just the absolutely simplest demonstration of the bug I could cook up in what time I had available. It certainly is not a demonstration of proper MVVM design... The bug also affects ReactiveUI (which I don't use, I prefer Community Toolkit. So much less boilerplate). In the ReactiveUI case, it resolves the view fine, and shows up in the router's history, but no navigation until you tap something to "unstick" it |
@LyleRolleman-plst thx for the clarification, I got it. One idea I have which sometimes helps is to utilize Dispatcher.UiThread.Post in order to wait for the UI to "unfreeze". However if that also doesn't help, we nned to wait for someone with an iOS as I own no such device on my own. |
@timunie I tried that without success :( On the off chance that it matters, this is on an iPhone SE (3rd gen) running iOS 16.6.1 |
Describe the bug
When changing a bound Content property of a TransitioningContentControl on iOS after returning from a Web Authentication view (using MAUI.Essentials WebAuthenticator), it fails to navigate until I tap on some other control (say a button)
It works fine if it's just a regular ContentControl so presumably there is something funky going on with transitions
It also works fine if I do not launch the authentication flow
I think this is also happening on ReactiveUI's routing
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Transition should occur
Screenshots
If applicable, add screenshots to help explain your problem.
N/A
Environment
Additional context
I don't know how specific using WebAuthenticator is to this, perhaps any deep link or any native modal style view will cause it? Not sure at this point
The text was updated successfully, but these errors were encountered: