         delegate?.retrieved(location: location)
     }
     
-   // public func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) {
-  //     self.delegate?.retrieved(heading: newHeading)
-    //}
+    #if os(iOS)
+    public func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) {
+        self.delegate?.retrieved(heading: newHeading)
+    }
+    #endif
     
     public func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
         switch status {

            return
        }
        
        //self.locman.headingFilter = 5
        //self.locman.headingOrientation = .portrait
        updatingHeading = true
       // self.locman.startUpdatingHeading()
    }
    
    // MARK: - CLLocationManager Delegate

     */
    public func stopUpdates () {
        locman.stopUpdatingLocation()
        
        #if os(iOS)
            locman.stopUpdatingHeading()
        #endif
        
        updatingHeading = false
        trying = false
        startTime = nil
