Don't share custom metadata (#1199)

🤦 that was way to easy, thanks docs!
This commit is contained in:
Nathan Mattes 2023-12-20 18:10:28 +01:00
parent 8e14121a6b
commit 14ebe58fc0
1 changed files with 3 additions and 6 deletions

View File

@ -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
}
}