Don't share custom metadata (#1199)
🤦 that was way to easy, thanks docs!
This commit is contained in:
parent
8e14121a6b
commit
14ebe58fc0
|
@ -13,6 +13,7 @@ class URLActivityItemWithMetadata: NSObject, UIActivityItemSource {
|
||||||
self.url = url
|
self.url = url
|
||||||
self.metadata = LPLinkMetadata()
|
self.metadata = LPLinkMetadata()
|
||||||
metadata.url = url
|
metadata.url = url
|
||||||
|
metadata.originalURL = url
|
||||||
configureMetadata(metadata)
|
configureMetadata(metadata)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,14 +21,10 @@ class URLActivityItemWithMetadata: NSObject, UIActivityItemSource {
|
||||||
let metadata: LPLinkMetadata
|
let metadata: LPLinkMetadata
|
||||||
|
|
||||||
func activityViewControllerPlaceholderItem(_ activityViewController: UIActivityViewController) -> Any {
|
func activityViewControllerPlaceholderItem(_ activityViewController: UIActivityViewController) -> Any {
|
||||||
url
|
return url
|
||||||
}
|
}
|
||||||
|
|
||||||
func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
|
func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
|
||||||
url
|
return url
|
||||||
}
|
|
||||||
|
|
||||||
func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
|
|
||||||
metadata
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue