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.metadata = LPLinkMetadata()
|
||||
metadata.url = url
|
||||
metadata.originalURL = url
|
||||
configureMetadata(metadata)
|
||||
}
|
||||
|
||||
|
@ -20,14 +21,10 @@ class URLActivityItemWithMetadata: NSObject, UIActivityItemSource {
|
|||
let metadata: LPLinkMetadata
|
||||
|
||||
func activityViewControllerPlaceholderItem(_ activityViewController: UIActivityViewController) -> Any {
|
||||
url
|
||||
return url
|
||||
}
|
||||
|
||||
func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
|
||||
url
|
||||
}
|
||||
|
||||
func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
|
||||
metadata
|
||||
return url
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue