Build your own cloud sync on iOS and macOS using Apple FileProvider APIs

Introduction If you&rsquo;ve used iCloud, Google Drive, Dropbox, or any other major file syncing service on macOS, you will have noticed that files only get downloaded as you interact with them. These services use Apple&rsquo;s FileProvider API to achieve this. The FileProvider API gives developers a number of tools to present files to users via a special filesystem through Finder. It in effect…