ios – Learn how to change final path element of CKAsset’s file?


After I fetch document from CloudKit there may be an sqlite property title outlined as CKAsset. I can entry it like this:

if let url = (document["sqlite"] as? CKAsset)?.fileURL {


I’ve uploaded to CloudKit file named MyApp.sqlite. And now I want to have file with the identical title because it was earlier than importing. How can I alter it? In fact I understand how to replace url with what I would like, however altering url does not change file title.