My issue is that I was using QLPreviewController's view as a subview to my constom view controller, since I need different controls to be available on the toolbar. This is working fine till iOS 9. However in iOS10 the view does not show up the image. I could have alternatively made a cutom preview controller, but the issue is I will have to make my custom controller handle previewing other document types such PDFs as well. That is why QLPrevireControlller was the ideal fit.
Am I missing something here. Please help.