Verified Commit c1829ea9 authored by asahiocean's avatar asahiocean 🚀
Browse files

commit

parent 635b0da1
......@@ -26,7 +26,7 @@ extension ViewController: MKMapViewDelegate {
//MARK: - MKUserTrackingMode
func mapView(_ mapView: MKMapView, didChange mode: MKUserTrackingMode, animated: Bool) {
if lm.shared.status != .authorizedWhenInUse {
if LM.shared.status != .authorizedWhenInUse {
let alert = alertAuthorizedWhenInUse()
present(alert, animated: true, completion: {
mapView.userTrackingMode = .none
......
import Foundation
import CoreLocation
typealias lm = LocationManager
typealias LM = LocationManager
@objc class LocationManager: CLLocationManager {
......@@ -26,7 +26,6 @@ typealias lm = LocationManager
}
extension LocationManager: CLLocationManagerDelegate {
func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
self.status = status
switch status {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment