How can I use @AppStorage for a string map in a SwiftUI app?
This is what I want to do:
@AppStorage("ratings") var ratings: [String: Double] = []
But this gives me the error message “No exact matches in call to initializer”. When looking at the documentation, it looks like only a few data types are supported. It is possible to encode it as Data?