Swift 4: Change / Clear PDFView content
问题 I want to use PDFView framework in Swift 4. (https://developer.apple.com/documentation/pdfkit/pdfview) The following function receives a path to a PDF document. If the path is valid, the PDF file is successful shown. A problem occurs, when I call openMe(path: String) twice. In this case, the old content is still there and the new content is added. I just want to change the old content with the new content. private var pdfData: NSData? = nil func openMe(path: String) { let fileManager =