Post

Replies

Boosts

Views

Activity

.send() and .sink() do not seem to work anymore for PassthroughSubject in Xcode 11 Beta 5
var body: some View { let publisher = PassthroughSubject<string, never="">( publisher.sink { (str) in print(str) } return Button("OK") { publisher.send("Test") } }"Test" should be printed in the console when the Button is pressed, but it's not. The event is not send through the publisher.Any idea what happened with PassthroughSubject in Xcode 11 Beta 5 ?
4
0
2.9k
Jul ’19