Hello,
Welcome to our Microsoft Q&A platform!
I created a basic demo to test the function on ios simulator and faced the same problem. This may be a potential issue with the lastest release, it's suggested to report the issue via the 'Report a Problem' menu and follow it on the Developer Community site. Please see How to report a problem with Visual Studio - Visual Studio | Microsoft Learn.
Here is a wordaround: downgrade the VS to previous version like 16.96.
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.