I’m attempting to verify the obtain standing of my url utilizing resourceValues(forKeys:). That is my code
if let standing = attempt? url.resourceValues(forKeys: [URLResourceKey.ubiquitousItemDownloadingStatusKey]) {
if standing.ubiquitousItemDownloadingStatusKey == .present {
print("File obtain full.")
}
}
This code labored earlier than however now Xcode says “Worth of sort ‘URLResourceValues’ has no member ‘ubiquitousItemDownloadingStatusKey'” and all I’m able to get from standing is a few thumbnailDictionary. Can anybody inform me what is occurring right here? Am I making some foolish mistake ?