Id be very thankful if anyone can help.
Actually nobody can really help yet, because the try? in this line silently eats the thrown error:
guard let loadedData = try? decoder.decode(T.self, from: data) else {
You should move the decoding into a do / catch block, and then you can examine the error that gets thrown. What does it say?
Topic:
App & System Services
SubTopic:
General
Tags: