peterfriese / MakeItSo

This is the source code for Make It So, the sample app accompanying my blog post "Replicating the iOS Reminders App Using SwiftUI and Firebase"

Home Page:https://twitter.com/peterfriese/status/1453467058302291975

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot save @DocumentID properties to disk

mickspecial opened this issue · comments

Learning a lot from your demo app's structure, how I have an issue with saving some test data to disk.

When using the LocalTaskRepository, it creates a json file for your test data, but you cannot use the wrapper @documentid when doing standard encoding - so the app crashes.

This is expected, as per the docs, but is there away you would approach this ? Having test data sources, with the great swap in / out repos thanks to Resolver would be great.

What do you suggest to make it work ? Hopefully I didn't miss something in your articles.

Thanks

Yes, I am running into this also, is there any solution yet?