I'm trying to pick *otf* and *ttf* font files with UIDocumentPickerViewController with this line of code:
UIDocumentPickerViewController *picker = [[UIDocumentPickerViewController alloc]
initWithDocumentTypes:@[@"public.opentype-font", @"public.truetype-ttf-font"] inMode:UIDocumentPickerModeImport];
This works perfectly with iCloud Drive, Dropbox, Box, etc. All non-font files are grayed out, and picking a font file works as expected.
But it doesn't work if I select Google Drive, there all files are grayed out, I cannot select the font files.
I tried to change the document types to just "public.content", but even with that, the font files on Google Drive are still grayed out.
Anybody has any idea what could be the problem here?
Thanks!
Cheers,
Zsombor