Trying to get current location with using swiftUI. Below code, couldn\'t initialize with didUpdateLocations delegate.
class GetLocation : BindableObject {
As of Xcode 11 beta 4, you will need to change didChange to willChange:
didChange
willChange
var willChange = PassthroughSubject() var lastKnownLocation: CLLocation? { willSet { willChange.send(self) } }