Created
June 5, 2019 07:53
-
-
Save fitomad/9284530d1d3f3fb4b7ddafeb482a8a84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
guard let videoURL = URL(string: "https://www.youtube.com/watch?v=3x7_w9Oz8lQ") else | |
{ | |
return | |
} | |
// Creamos el objeto con el que recuperamos el detalle | |
let metadataProvider = LPMetadataProvider() | |
metadataProvider.startFetchingMetadata(for: videoURL, completionHandler: { (metadata: LPLinkMetadata?, error: Error?) -> Void in | |
if let desappstreMetadata = metadata | |
{ | |
let linkView = LPLinkView(metadata: desappstreMetadata) | |
} | |
}) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment