I’m using the iOS SDK (8.1.2 via SPM) and, at least in the simulator, it looks like the memory continues to grow as I view documents. I tried to strip out all my custom code, and just doing the following snippet still causes memory to grow:
let docController = PTDocumentController()
let navController = UINavigationController(rootViewController: docController)
let fileURL = URL(string: downloadLink)!
docController.openDocument(with: fileURL)
presenter.present(navController, animated: true, completion: nil)
I’m accessing a file from AWS instead of locally. That “presenter” variable is just one of my UIViewController classes. The PDF opens and displays just fine, but when I leave the screen and come back to view a new document, I see the memory used is growing pretty significantly.
In my custom class, derived from PTDocumentController, I did try overriding viewWillDissapear and manually call closeDocument, which seems to help a LOT, but the memory still grows pretty quickly.
Any help would be greatly appreciated!! Thanks.