From 063ed29d5de2979768762cf625eb558212fef92b Mon Sep 17 00:00:00 2001 From: Michael Tsai Date: Mon, 22 Jan 2018 11:02:29 -0500 Subject: [PATCH] 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. --- Evergreen/MainWindow/Timeline/ArticlePasteboardWriter.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Evergreen/MainWindow/Timeline/ArticlePasteboardWriter.swift b/Evergreen/MainWindow/Timeline/ArticlePasteboardWriter.swift index f49afe0b4..faf5b41fe 100644 --- a/Evergreen/MainWindow/Timeline/ArticlePasteboardWriter.swift +++ b/Evergreen/MainWindow/Timeline/ArticlePasteboardWriter.swift @@ -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 }