Verified Commit 8487feaa authored by asahiocean's avatar asahiocean 🚀
Browse files


parent eb7f289c
......@@ -130,7 +130,7 @@ extension ViewController: ModelDelegate {
let alert = UIAlertController(title: "Point is too far away!",
message: "The distance between the vertices should not be more than 5 km.",
preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "ОК", style: .cancel))
alert.addAction(.init(title: "ОК", style: .cancel))
present(alert, animated: true)
......@@ -3,8 +3,8 @@ import UIKit
func alertAuthorizedWhenInUse() -> UIAlertController {
let alert = UIAlertController(title: "You have banned location tracking", message: "To resume tracking location, grant the app access to geolocation in your iPhone settings\n(Privacy > Location Services)", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Close", style: .cancel))
alert.addAction(UIAlertAction(title: "Settings", style: .default, handler: { _ in
alert.addAction(.init(title: "Close", style: .cancel))
alert.addAction(.init(title: "Settings", style: .default, handler: { _ in
let settings = UIApplication.openSettingsURLString
if let id = Bundle.main.bundleIdentifier,
let url = URL(string: "\(settings)&path=LOCATION/\(id)") {
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