I\'m using the below code to use QLPreviewcontroller to show some documents in my app,
let ql = QLPreviewController()
ql.dataSource = self
//ql.navigationIte
this work for me
class QLSPreviewController : QLPreviewController {
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(true )
//This hides the share item
let add = self.childViewControllers.first as! UINavigationController
let layoutContainerView = add.view.subviews[1] as! UINavigationBar
layoutContainerView.subviews[2].subviews[1].isHidden = true
}
}