My project recently shows this error in Xcode:
'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
I found this article which speaks to my exact problem:
Except that my data is an array of strings, not a dictionary. So, because I can't leave a comment on that post, I'm asking this as a new question.
How can I get the below solution to apply to [String]?
let dictionary = try? NSKeyedUnarchiver.unarchivedObject(ofClasses: [NSDictionary.self, NSArray.self], from: data) as? NSDictionary