mirror of
https://github.com/TermiT/Flycut.git
synced 2025-02-23 07:25:28 +08:00
Add support for additional pasteboard item type that is sufficiently compatible with what Flycut supports.
This commit is contained in:
parent
4d11c5e934
commit
94757b6290
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue