HomeiOS Developmentswift - iCloud file obtain standing utilizing ubiquitousItemDownloadingStatusKey not working

swift – iCloud file obtain standing utilizing ubiquitousItemDownloadingStatusKey not working


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 ?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments