This message isn't related to a capability.
As it says, you must publish your changes on the main thread....
...try using (for example):
DispatchQueue.main.async {
// your publishing code here...
}
Or for Combine:
.receive(on: DispatchQueue.main)
This message isn't related to a capability.
As it says, you must publish your changes on the main thread....
...try using (for example):
DispatchQueue.main.async {
// your publishing code here...
}
Or for Combine:
.receive(on: DispatchQueue.main)