SwiftUI Text.onReceive throws Instance method 'onReceive(_:perform:)' requires that 'AnyCancellable' conform to 'Publisher'

后端 未结 0 1542
不知归路
不知归路 2021-01-16 10:33

In SwiftUI View ContentView I have a notification pub that is used to update a Text object:

struct ContentView: View {
...
let activePub = NotificationCenter.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题