Skip to content

Commit 5ca26ad

Browse files
authored
[Fix]Picture-in-Picture store thread access (#794)
1 parent b2537e7 commit 5ca26ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/StreamVideoSwiftUI/Utils/PictureInPicture/PictureInPictureStore.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ final class PictureInPictureStore: ObservableObject, @unchecked Sendable {
106106
func publisher<Value>(for keyPath: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
107107
subject
108108
.map(keyPath)
109+
.receive(on: DispatchQueue.main)
109110
.eraseToAnyPublisher()
110111
}
111112
}

0 commit comments

Comments
 (0)