Instantly share code, notes, and snippets.

@fitomad fitomad/swift5_SE-0230.swift Secret
Created Jan 21, 2019

Embed
What would you like to do?
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