skip to Main Content

CLLocationManagerDelegate functions not called – Ios swift

I have a separate class named LocationService class LocationService: NSObject, CLLocationManagerDelegate { private var locationManager = CLLocationManager() private var locationCallback: ((CLLocation?) -> Void)! override init(){ super.init() self.locationManager.delegate = self } public func getCurrentLocation (_ completion: @escaping(CLLocation?) -> Void) { if…

VIEW QUESTION
Back To Top
Search