We have the very same setup. When I implement QLPreviewControllerDelegate shouldOpen func previewController(_ controller: QLPreviewController, shouldOpen url: URL, for item: QLPreviewItem) -> Bool
debugPrint("The user clicked on link \(url.absoluteString) in opened document")
DispatchQueue.main.async {
UIApplication.shared.open(url, options: [:])
}
return true
}then I can open the link by explicitly opening the link with UIApplication.But that's not the way we want it to, because the AlertView is still open and awaits my reaction (-> YES).But at least it shows, that the delegate works and gets the correct url.Documentation tells us:If you return true, the Quick Look preview controller invokes the openURL(_:) method on the UIApplicationobject, sending it the value of the url parameter. If you return false, the openURL: method isn’t invoked.That means, we have a problem invoking implicitly openURL(_:) on the UIApplication object. Maybe because of some missing rights....