         let body = contentText ?? ""
         if let fileURL = fileURLs.first where fileURL.pathExtension == "m4a" {
             shareType = .Audio(body: body, fileURL: fileURL)
-        } else if let URL = urls.first {
+        } else if let URL = webURLs.first {
             shareType = .URL(body: body, URL: URL)
         } else if !images.isEmpty {
             shareType = .Images(body: body, images: images)

    }

    override func isContentValid() -> Bool {
        return !(contentText ?? "").isEmpty || !urls.isEmpty
    }

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

    override func presentationAnimationDidFinish() {

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

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

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


extension ShareViewController {

    private func webURLsFromExtensionContext(extensionContext: NSExtensionContext, completion: (webURLs: [NSURL]) -> Void) {

        var webURLs: [NSURL] = []

        guard let extensionItems = extensionContext.inputItems as? [NSExtensionItem] else {
            return completion(webURLs: [])
        }

        let URLTypeIdentifier = kUTTypeURL as String
