Disable custom status link previews on iOS 16.4
This commit is contained in:
parent
cb82826fcf
commit
2a892fa6ec
|
@ -26,6 +26,10 @@ class StatusActivityItemSource: NSObject, UIActivityItemSource {
|
|||
}
|
||||
|
||||
func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
|
||||
guard #unavailable(iOS 16.4) else {
|
||||
// iOS 16.4 shows the full content and attachments in the Messages preview, better than what we can generate with LPLinkMetadata
|
||||
return nil
|
||||
}
|
||||
let metadata = LPLinkMetadata()
|
||||
metadata.originalURL = status.url!
|
||||
metadata.url = status.url!
|
||||
|
|
Loading…
Reference in New Issue