Create a Publishable property in a view controller, pass it to a SwiftUI View and listen to changes inside view controller?

后端 未结 0 1074
情深已故
情深已故 2021-02-13 21:56

This is what I am trying to achieve:

class MyVC: UIViewController {
    @State var myBoolState: Bool = false

    private var subscribers = Set

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