There seems to be a bug here. I am using PDFPageView as a subview of documentView, and I need to set isUserInteractionEnabled = true on each PDFPageView for it to work properly. Without this setting, the interaction does not function as expected.
for subView in view.documentView?.subviews ?? [] {
if subView.theClassName == "PDFPageView" {
subView.isUserInteractionEnabled = true
}
}
extension NSObject {
var theClassName: String {
return NSStringFromClass(type(of: self))
}
}
Topic:
UI Frameworks
SubTopic:
General
Tags: