5

I use FileManager.default.contentsOfDirectory to get the content of an iCloud Drive directory. However, sometimes, when I removed a file on my Mac, the content is not up to date. I can force a synchronization by opening the Files app on my iPhone and browse to that directory. Afterwards, the change is also visible in my iOS app.

My question: How can I manually and programmatically force a synchronization of iCloud Drive between my iOS device (iPhone) and iCloud?

John
  • 8,468
  • 5
  • 36
  • 61

0 Answers0