Cannot use SetModalPresentationStyle in MAUI project
This issue has been moved from a ticket on Developer Community.
Hello! we are migrating out app from xamarin to MAUI.
Building for Iphone we met this error but, reading this documentation this code should work without problems, what am I missing?

I can see that the:
using Microsoft.Maui.Controls.PlatformConfiguration;
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;
is not recognized from VS, so I think that is why the On<iOS> is not going to work... can you please help me?
Thank you very much
Original Comments
Feedback Bot on 9/12/2024, 10:59 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
TJ Lambert [MSFT] on 9/16/2024, 09:08 AM:
That is interesting and does look like it should work the way you are using it. Could you share the whole file, the other errors, and also let me know what version of MAUI you are using?
Angelo Lazzari on 9/16/2024, 08:36 PM:
(private comment, text removed)
Angelo Lazzari on 9/27/2024, 03:13 AM:
Hi, do you have any news on this? thank you very much!
This looks the correct usage. could you please share a small repro project ? thanks
Hi @vsfeedback. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.