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?