Created
February 15, 2022 07:44
-
-
Save tssandor/e6d46c99517459dfc5ae6f9104f93e7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension AppDelegate: PublisherDelegate { | |
/// this method called when failure to track location | |
func publisherOnError(error: Error) { | |
print("track location failed, error: \(error. | |
localizedDescription)") | |
} | |
/// this method called when location successfully tracked | |
func publisherOnSuccessTracking() { | |
print("location successfully tracked") | |
} | |
/// this controller used to show alert. | |
func publisherControllreParent() -> UIViewController? { | |
UIApplication.shared.windows.first(where: { $0.isKeyWindow })?. | |
rootViewController | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment