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?
- I have read the “Reporting a bug” section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
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
- Create a .NET MAUI project using .NET 8.0.403.
- Add the CommunityToolkit.Maui package.
- Deploy the app on an iOS 18.0 device.
- 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)
FYI there is no LTS/STS for .NET MAUI.