Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
UIKit Document App -- adding a toolbar
Ok seems I have to change presentDocument to:
func presentDocument(at documentURL: URL) {
let navVC = UINavigationController()
let doc = Document(fileURL: documentURL)
let docVC = UIDocumentViewController(document: doc)
navVC.modalPresentationStyle = .fullScreen
navVC.addChild(docVC)
present(navVC, animated: true, completion: nil)
}
So embed the UIDocumentViewController inside a UINavigationController.