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 ?