Swift Protocol requiring a @State Bool be defined

前端 未结 0 933
野的像风
野的像风 2021-02-06 20:26

I would like to declare a Swift protocol that requires conforming classes define a @Published Bool

class MyModel: ObservableObject, MyProtocol {
    @Published va         


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