UITapGestureRecognizer not triggered in custom renderer

David Dancy 1 Reputation point
2021-02-11T09:14:39.867+00:00

I've made a custom renderer for a complicated View that's currently impossible to build in Xamarin Forms. I have various UIViews as subviews of the UIView that's rendering the Forms View. I need to attach a UITapGestureRecognizer to one of those UIViews and respond to the tap. However the UITapGestureRecognizer is not being triggered.
Why? Is there any way to make it work?
Thanks!

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.