I'm using v8.1.2 of the iOS SDK and running into a problem that I just can't seem to figure out...
What I did:
1. Rolled a totally new project,
2. Added PDFTron via SPM
3. I initialize with my PDFTron key in the appdelegate
4. Added a button to the view controller that Xcode gave me with the new project and hooked it up to call my test method....
@IBAction func compareButtonPressed(_ sender: UIButton)
let doc1 = PTPDFDoc(filepath: Bundle.main.url(forResource: "pdfDoc1", withExtension: "pdf")?.path)!
let doc2 = PTPDFDoc(filepath: Bundle.main.url(forResource: "pdfDoc2", withExtension: "pdf")?.path)!
let compareDoc = self.pdfCompareDoc(docA: doc1, docB: doc2, colorA: PTColorDefaults.colorPt(from: UIColor.blue), colorB: PTColorDefaults.colorPt(from: UIColor.red), blendMode: e_ptbl_darken)
let documentController = PTDocumentController()
let navigationController = UINavigationController(rootViewController: documentController)
self.present(navigationController, animated: true, completion: nil)
Now that DOES do the compare and presents the expected UI. So far this is all good.
The problem I'm running into is when I tap on the "..." in the upper right (the "more" button), and then select the "Share" menu options, nothing happens. The menu simply disappears.
It's bizarre too, because the "Share" menu option works if all I do is open one of the docs. it's only when I present it like above for comparing two docs.
Any help is greatly appreciated, thanks!