How to add/remove a tag name for a file using URL structure (Mac OS X swift 3)

74 Views Asked by At

I can read tag names like this:

let rv = try? someURL.resourceValues(forKeys: [.tagNamesKey])
print(rv!.tagNames)

But how can I add or remove a tag name?

Thanks for your help,

Gilbert

0

There are 0 best solutions below