Aespa
Aespa copied to clipboard
Xcode warning: Publishing changes from background threads is not allowed
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:
https://github.com/enebin/Aespa/blob/66a9face7d4ab96f184650b0e006bcd8bce8f4c2/Sources/Aespa/Core/Context/AespaVideoContext.swift#L53
It would be nice if you could change all sends so they run on the main thread. Thanks.