uxmstudio / UXMPDFKit

An iOS PDF viewer and annotator written in Swift that can be embedded into any application.
MIT License
275 stars 104 forks source link

Toolbar doesn't show #84

Closed dennisvandalen closed 6 years ago

dennisvandalen commented 6 years ago

Hi,

I wanted to test UXMPDFKit in my app but I can't get the toolbar to show, and thus I can not

I copied this from the example, but I doesn't seem to work. How can I get the toolbar?

(Installed via cocoapods)

        let document = try! UXMPDFDocument.from(filePath: url)

        let pdf = UXMPDFViewController(document: document!)
        pdf.annotationController.annotationTypes = [
            PDFHighlighterAnnotation.self,
            PDFPenAnnotation.self,
            UXMTextAnnotation.self
        ]

        self.navigationController?.pushViewController(pdf, animated: true)

Environment

dennisvandalen commented 6 years ago

I didn't have a navigation controller. That solved the issue.