Add support for additional pasteboard item type that is sufficiently compatible with what Flycut supports.

This commit is contained in:
Mark Jerde 2017-10-19 15:02:43 -05:00
parent 4d11c5e934
commit 94757b6290

View file

@ -209,6 +209,11 @@ class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSour
let pasteboard = UIPasteboard.general.value(forPasteboardType: "public.utf8-plain-text")
self.flycut.addClipping(pasteboard as! String!, ofType: "public.utf8-plain-text", fromApp: "iOS", withAppBundleURL: "iOS", target: nil, clippingAddedSelector: nil)
}
else if ( UIPasteboard.general.types.contains("public.text") )
{
let pasteboard = UIPasteboard.general.value(forPasteboardType: "public.text")
self.flycut.addClipping(pasteboard as! String!, ofType: "public.text", fromApp: "iOS", withAppBundleURL: "iOS", target: nil, clippingAddedSelector: nil)
}
}
}
}