             return .Image(image)
         }
 
-        if let url = item as? NSURL {
-            return .URL(url)
-        }
-
         fatalError("unsupported types")
     }
 

        let pasteboard = UIPasteboard.generalPasteboard()
        pasteboard.addItems(items)
    }

    func addItem(item: AnyObject) {
        let pasteboardItem = self.pasteboardItem(item)!
        pasteboardItems.value = pasteboardItems.value.filter { pasteboardItem != $0 }
        pasteboardItems.value.append(pasteboardItem)

        let pasteboard = UIPasteboard.generalPasteboard()
        changeCount.value = pasteboard.changeCount
    }

    // MARK: prvivate functions


import UIKit
import RxSwift
import MobileCoreServices

typealias PasteboardItemArray = Array<Dictionary<String, AnyObject>>

