Closed hershalle closed 6 years ago
I receive the error message when using this line:
Disk.save("testing", to: .temporary, as: "testing")
String is Codable so it should be supported, right?
Codable
A String isn't a valid type for JSONEncoder, the class Disk uses in the background. See http://benscheirman.com/2017/06/ultimate-guide-to-json-parsing-with-swift-4/ for more info.
String
JSONEncoder
I receive the error message when using this line:
Disk.save("testing", to: .temporary, as: "testing")
String is
Codable
so it should be supported, right?