Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode warning: Publishing changes from background threads is not allowed #49

Open
derwaldgeist opened this issue Jun 28, 2024 · 0 comments

Comments

@derwaldgeist
Copy link

derwaldgeist commented Jun 28, 2024

First off, thanks for this great package! It really helped me a lot to get to a capturing solution quickly.

In my Xcode 16.0 beta logs, I can see this SwiftUI error message:

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.

This can be tracked down to this line:

videoFileBufferSubject.send(.success(firstVideoAsset.toVideoFile))

It would be nice if you could change all sends so they run on the main thread. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant