Maui: [BUG] Constructor mismatch in TransparentPopoverBackgroundView

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the “Reporting a bug” section on Contributing file?

Current Behavior

When running a .NET MAUI application on iOS 18.0 with .NET 8.0.403 and Xcode 16.0, a warning is raised related to the CommunityToolkit.Maui.Core.Views.PopupExtensions+TransparentPopoverBackgroundView constructor. The warning indicates that there is no constructor that takes an ObjCRuntime.NativeHandle parameter, but a constructor that takes a System.IntPtr parameter was found and is used instead.

And popup not show.

Expected Behavior

The constructor should properly accept ObjCRuntime.NativeHandle to ensure compatibility and optimal interop behavior and popup to be shown.

Steps To Reproduce

  1. Create a .NET MAUI project using .NET 8.0.403.
  2. Add the CommunityToolkit.Maui package.
  3. Deploy the app on an iOS 18.0 device.
  4. Observe the warning in the output logs.

Link to public reproduction project repository

https://github.com/Pallav-sculptsoft/BugReproduce

Environment

- .NET MAUI CommunityToolkit: 9.1.0
- OS: Sequoia 15.0.1
- .NET MAUI: 8.0.403

Anything else?

Here is the same fixed issue but not for this scenario - https://github.com/xamarin/xamarin-macios/issues/14046

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 15 (2 by maintainers)

Most upvoted comments

We now support dotnet 9.x. Can you try latest version of toolkit which is 11.x? Can you report back if this solves your issue?

Thank you for your response! Since .NET 8 is currently the LTS version, I won’t be upgrading to .NET 9 just to check this issue. However, I’ll revisit this when I upgrade in the future and will check if the problem is resolved then.

FYI there is no LTS/STS for .NET MAUI.