Friday, July 19, 2024
HomeiOS Developmentc# - MAUI .NET 8 iOS - Span TapGestureRecognizer not working

c# – MAUI .NET 8 iOS – Span TapGestureRecognizer not working


I’ve created a brand new MAUI .NET 8 mission and migrated the Xamarin varieties mission code.

In iOS, the span textual content TapGestureRecognizer is just not working.

gesture_Tapped occasion is just not triggered.

var sp2 = new Span { Textual content = “Click on right here” };

TapGestureRecognizer gesture = new TapGestureRecognizer
{
    NumberOfTapsRequired = 1
};

sp2.GestureRecognizers.Add(gesture);



gesture.Tapped += gesture_Tapped;


personal void gesture_Tapped(object? sender, EventArgs e)
{
    EmailTest e mail = new EmailTest();
    e mail.SendEmail(StringConstants.TEXT_EMAIL);
}

How do I resolve this subject?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments