Actually i installed the 13.2 Beta with the same issue, however i found a workaround for me. When i did add a tap gesture recognizer it was working on ios 13 however it would swallow up the taps on Links. Here's what i did to fix the issue:
I overrode the addGestureRecognizer on the subclass of PDFView, i then spin through and find the one that is a tap gesture 1 touch (this is provided by apple to handle the links clicking) and create my new tapgesture that i want to show/hide a menu (or your custom actions). I add it to the PDFView and require the built in one by apple to Fail (line 15).
I then allow the shouldRecognizeSimultaneouslyWithGesture which lets both tap gestures to call correclty. if you tap a link, my new one doesn't get called, but if you don't tap a link then it works perfectly and shows/hides my menu. I hope this is useful to someone!
- (void)addGestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
{
if ([gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]])
{
UITapGestureRecognizer *tapGest = (UITapGestureRecognizer*)gestureRecognizer;
if (tapGest.numberOfTapsRequired == 1)
{
if (![tapGest isEqual:singleTapGesture])
{
if (![self.gestureRecognizers containsObject:singleTapGesture])
{
singleTapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(singleTap:)];
[singleTapGesture setNumberOfTapsRequired:1];
[singleTapGesture setDelegate:self];
[singleTapGesture requireGestureRecognizerToFail:tapGest];
[self addGestureRecognizer:singleTapGesture];
}
}
}
}
[super addGestureRecognizer:gestureRecognizer];
}
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
return YES;
}