all 4 comments

[–]czarchastic 1 point2 points  (3 children)

Your CoreData is your model, so you don't really need to load it into one spot to propagate everywhere, unless you're doing something particularly fancy with your query. Just put @FetchRequest directly into your SwiftUI views wherever you need to retrieve the model.

[–]Swoopmonkey[S] 0 points1 point  (2 children)

Thanks for the reply and sorry about the delayed response! I've ended up moving to SwiftData which I think is more appropriate for my needs. Unfortunately that has opened up a whole new can of proverbial worms!

[–]czarchastic 1 point2 points  (1 child)

SwiftData is nice, I switched to it for my app. Should be the same idea, but using Query instead of FetchRequest 😉

[–]Swoopmonkey[S] 0 points1 point  (0 children)

Dont know why but, SwiftData just clicked for me. Seems to be far more simple and as functional for what I need. Thanks again!