I\'m using the below code to use QLPreviewcontroller to show some documents in my app,
let ql = QLPreviewController()
ql.dataSource = self
//ql.navigationIte
If Still, anyone wants to remove share option or want to customize the Navigation bar of QLPreviewController
then they can try creating a UIViewController
and customize it as per requirement and then create QLPreviewController
object and add it as a child view controller.
This will allow you to get rid of share button and you customize navigation bar color etc. this is working for me.
To know, how to add child view controller you can refer to this