-
-
Save fitomad/5a5e10a9168e2a7436ab83dc49fb69d6 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
if let desappstreURL = URL(string: "http://desappstre.com/sitemap.xml") | |
{ | |
// En Swift 4 el tipo de webContents sería String?? | |
// En Swift 5 se *aplana* y webContents sería String? | |
let webContents = try? String(contentsOf: desappstreURL) | |
print("Contenido de desappstre.com\r\n \(webContents)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment