|
|
|
@ -70,7 +70,7 @@ public class OptionalStorage<T : Codable> { |
|
|
|
let jsonString = try FileUtils.readDocumentFile(fileName: fileName) |
|
|
|
let jsonString = try FileUtils.readDocumentFile(fileName: fileName) |
|
|
|
if let decoded: T = try jsonString.decode() { |
|
|
|
if let decoded: T = try jsonString.decode() { |
|
|
|
self.item = decoded |
|
|
|
self.item = decoded |
|
|
|
Logger.log("user loaded with: \(jsonString)") |
|
|
|
// Logger.log("user loaded with: \(jsonString)") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} catch { |
|
|
|
} catch { |
|
|
|
|