Skip to content
Discussion options

You must be logged in to vote

The .run effect you posted above is the correct way to do this, and it cannot cause the runtime warning you showed. That warning only occurs when sending an action directly to a view store, which effects do not do. So there must be something else going on.

If you expand the warning in the left sidebar of Xcode it will show you a stack trace of where the the viewStore.send happened that caused the warning. Maybe that will help you track down what happened.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Muhammed9991
Comment options

Answer selected by Muhammed9991
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants