How to get Location user with CLLocationManager in swift?
first add this two line in plist file 1) NSLocationWhenInUseUsageDescription 2) NSLocationAlwaysUsageDescription Then this is class working complete implement this import UIKit import CoreLocation @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, CLLocationManagerDelegate { var window: UIWindow? var locationManager: CLLocationManager! var seenError : Bool = false var locationFixAchieved : Bool = false var locationStatus : NSString = “Not … Read more