AvaloniaUtils/DialogHost.Avalonia

Does not work correctly on iOS

alessandrofrancesconi opened this issue · 12 comments

I'm using DialogHost.Avalonia 0.7.7 for an app project targeting both Android and iOS.
Avalonia framework version is 11.0.6 and .NET version is 7.

Please check the attached sample project. It simply opens a message dialog (MessageDialog.xaml) when clicking the Button.

Running in Debug mode, it works as expected on Android 11. Instead on iOS (different devices from version 15.8 to 16.2) the popup does not open, or it takes a very long time.

Sorry but I cannot test in Release mode as for now, so I cannot tell you if this is related to a particular Configuration.

PopupTest.zip

Hello, @alessandrofrancesconi

I'll try to debug this, but I don't own physical iOS device, so only emulator available. If you find any details - please let me know.

I'm testing on multiple iOS Simulators, and 1 real device. The issue is present in both conditions.

Just tested in Release mode and the issue remains. It seems that, only on iOS, it is necessary to start tapping at the center of the screen to let the popup appear.

To add more details, I'm using the following version of Microsoft.iOS: 16.2.2054 / 7.0.100. I am not able to upgrade to a more recent version because I'm using Xcode 14.2 and cannot upgrade.

To test it with this very same version, add the following files to the root of the sample project:

global.json

{
  "sdk": {
    "version": "7.0.100",
    "rollForward": "disable",
    "allowPrerelease": false
  }
}

rollback.json

{
  "microsoft.net.sdk.ios": "16.2.2054/7.0.100"
}

Before compiling, run this:

dotnet workload uninstall ios
dotnet workload install ios --from-rollback-file rollback.json

Let me know if you can reproduce it, thanks!

Hmm, okay, thanks.

Can you also try to disabling animations from DialogHost. May be it will help?