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:
parent
6ec2f72443
commit
063ed29d5d
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue