J@y
Nov 29, 2024

This is an interesting approach and is a bit cleaner than what I have at the moment. I do have one question though: for the SwiftDataStore ModelActor, where will you be injecting the ModelContainer from and wouldn’t you be having issues with MainActor vs ModelActor if this wasn’t being injected from the View?

That’s the part that still stumps me when dealing with SwiftData, Views and ModelActors.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

J@y
J@y

Written by J@y

Technology, lifestyle, travel and food enthusiast.

Responses (1)

Write a response