I'm developing an NSFileProvider. In the Files app, in the folder view, the download badge appears next to every file, independently by the value returned by the isDownloaded function in the corresponding file provider item, as shown in the figure below:
The interesting things I noticed are:
- If I do not implement the isDownloaded function at all, the badge doesn't appear.
- If I implement the function, the badge is present no matter the return value of the isDownloaded function.
- Also implemented the isDownloading function and it works fine (the moving circle appears during the download operation, but then reverts to the 'download' badge instead of the white space as on the other providers).
Can you help me hide the badge for the files which were downloaded?
I checked Drive and Dropbox, and the badge works as expected, so I'm missing something for sure.
To double check, I tried to implement isDownloaded to always return true, but the badges still appear. They disappear just when I remove the implementation.