Xcode – Declaration is only valid at file scope how to fix?
I have a Problem in my swift file. Im trying to follow a tutorial on Youtube and he doesn't get the error. Here is the code: class ViewController: UIViewController, CLLocationManagerDelegate { private let locationManager = CLLocationManager() private var currentLocation: CLLocationCoordinate2D?…