Commit 0f9dd65e authored by shigemi miura's avatar shigemi miura

GPS使用許可

parent 08bf2886
...@@ -151,7 +151,12 @@ struct CustomTabBar: View { ...@@ -151,7 +151,12 @@ struct CustomTabBar: View {
Text("Do you change an emargency mode?") Text("Do you change an emargency mode?")
} }
.alert("Location", isPresented: $selectedTabModel.isLocationAlert) { .alert("Location", isPresented: $selectedTabModel.isLocationAlert) {
Button("OK") { Button("Cancel") {}
Button("Setting") {
guard let settingsURL = URL(string: UIApplication.openSettingsURLString) else {
return
}
UIApplication.shared.open(settingsURL, options: [:], completionHandler: nil)
} }
} message: { } message: {
Text("To use ECA,set the permission to use location information to ALWAYS.") Text("To use ECA,set the permission to use location information to ALWAYS.")
......
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