 
 extension ShareViewController {
 
-    private func imagesFromExtensionContext(extensionContext: NSExtensionContext, completion: (images: [UIImage]) -> Void) {
-
-        var images: [UIImage] = []
+    private func urlsFromExtensionContext(extensionContext: NSExtensionContext, completion: (urls: [NSURL]) -> Void) {
+
+        var urls: [NSURL] = []
 
         guard let extensionItems = extensionContext.inputItems as? [NSExtensionItem] else {
-            return completion(images: [])
+            return completion(urls: [])
         }
 
         let imageTypeIdentifier = kUTTypeImage as String

                            return
                        }

                        if let fileURL = secureCoding as? NSURL, image = UIImage(contentsOfFile: fileURL.path!) {
                            images.append(image)
                        }

        return true
    }

    var urls: [NSURL] = []
    var images: [UIImage] = []

    override func presentationAnimationDidFinish() {

        urlsFromExtensionContext(extensionContext!) { [weak self] urls in
            self?.urls = urls

            print("urls: \(self?.urls)")
        }

        imagesFromExtensionContext(extensionContext!) { [weak self] images in
            self?.images = images
