I have a UIDocument
-based app which shows a list of documents stored in iCloud. I'm getting their filenames (for displaying) from the NSMetadataItem
with metadataItem.value(forAttribute: NSMetadataItemDisplayNameKey)
. The documents contain a string and I've overridden the localizedName
property to produce a better name containing this string. Ideally, I'd like to show the localisedName property of the UIDocument
before it's been downloaded. Is there a way to do this?
I'm storing my UIDocument
as a FileWrapper
containing FileWrapper
s for each part of the document. In my case, this is just a UIImage
and a String
.
I'm managing to get the thumbnail without downloading the document so I was wondering if there's an equivalent thing for this string.
I'm using Swift 4 but I don't think that makes any difference here. Many thanks.