-
-
Save iosdevie/d773a4a2b7d397d6f0f2c738f6f3be0e 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
import LinkPresentation | |
let metadataProvider = LPMetadataProvider() | |
let url = URL(string: "https://medium.com/@anupamchugh/")! | |
metadataProvider.startFetchingMetadata(for: url) { [weak self] metadata, error in | |
guard let metadata = metadata else { return } | |
let linkView = LPLinkView(metadata: metadata) | |
self?.view.addSubview(linkView) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment