I am developing a swiftUI iOS 13+ application and I ran into a warning while developing a UIViewRepresentable for document picking.
According to the apple dev doc the initialiser of UIDocumentPickerViewController will be deprecated in future releases so this line:
let picker = UIDocumentPickerViewController(documentTypes: [kUTTypePDF as String], in: .open)
promts a deprecation warning and I have troubles finding a replacement. Can somebody help me ?
thanks