How to display CGPDFDocument in swift?
<p>Hi I have a CGPDFDocument object. I want to open this document by either showing it in my app or using an external application. Here is the code I have so far. in SWIFT</p>

<pre><code> let cfData = CFDataCreate(kCFAllocatorDefault, UnsafePointer&lt;UInt8&gt;(data.File.bytes), data.File.length)
 let cgDataProvider =  CGDataProviderCreateWithCFData(cfData)
 let cgPDFDocument  =  CGPDFDocumentCreateWithProvider(cgDataProvider)
</code></pre>