Post

Replies

Boosts

Views

Activity

Reply to How to solve "Publishing changes from background threads is not allowed; make sure to publish values from the main thread (via operators like receive(on:)) on model updates." error?
Hi Max, The warning is self explanatory so I will not explain whats happening over there. Coming to solution to dispatch the updates on Main Thread you can use @MainActor before the class keyword. This will automatically tell compiler to dispatch published updates on Main Thread. Thanks, Poonam
Oct ’24