Michael Freiwald @freiwald.dev 路 Mar 23

It gets even better with SwiftData and ModelActor 馃檲 One function is called on main-thread the other not 馃お

2 likes 3 replies

?

Replies

Michael Freiwald 路 Mar 23

Ok, this one is solved, looks like its more releated to some SwiftUI / @Environment issues where the Environment property gets not propagted to a child view... And then I'm using a not-background-created ModelActor...

Michael Freiwald 路 Mar 23

The tuple should be the problem? I don't think so, because calling the Tuple version from other places works as expected (not on main-thread)

Michael Freiwald 路 Mar 23

@massicotte.org I really hope you have some answers for me. It drives me crazy now while looking deeper and deeper 馃ゲ