Share button now supports "EagleFiler Import" and "Add to Reading List".

List .URL before .string in the pasteboard types because otherwise the system will not propose sharing services that receive URLs but not text.
This commit is contained in:
Michael Tsai
2018-01-22 11:02:29 -05:00
parent 6ec2f72443
commit 063ed29d5d

View File

@@ -31,12 +31,12 @@ import Data
func writableTypes(for pasteboard: NSPasteboard) -> [NSPasteboard.PasteboardType] {
var types = [ArticlePasteboardWriter.articleUTIType, .string]
var types = [ArticlePasteboardWriter.articleUTIType]
if let link = article.preferredLink, let _ = URL(string: link) {
types += [.URL]
}
types += [.html, ArticlePasteboardWriter.articleUTIInternalType]
types += [.string, .html, ArticlePasteboardWriter.articleUTIInternalType]
return types
}