Passing @Published variable between 2 @Observable classes

前端 未结 0 921
不思量自难忘°
不思量自难忘° 2020-11-28 06:45

first time posting

I have two classes that start out like below

class LocationManager: NSObject, ObservableObject{
    @Published var lat: Double = 0.0         


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