Swift - Encode and Decode a dictionary [String:Any] into plist
问题 I am trying to store the dictionary in my class Marker but it is throwing an error saying it is not encodable or decodable. I can see the error is caused by the [String: Any] but how can I go around it? var buttonActions : [String: [String: [String:Any]]] = [:] Save and Load func saveData() { let dataFilePath = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first?.appendingPathComponent("\(fileName).plist") let encoder = PropertyListEncoder() do { let data = try