mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Update StaticLocationViewingViewModel, MapViewErrorAlertInfoBuilder usage;
This commit is contained in:
@@ -78,7 +78,17 @@ class StaticLocationViewingViewModel: StaticLocationViewingViewModelType, Static
|
||||
}
|
||||
|
||||
let alertInfo = mapViewErrorAlertInfoBuilder.build(with: error) { [weak self] in
|
||||
self?.completion?(.close)
|
||||
|
||||
switch error {
|
||||
case .invalidLocationAuthorization:
|
||||
if let applicationSettingsURL = URL(string:UIApplication.openSettingsURLString) {
|
||||
UIApplication.shared.open(applicationSettingsURL)
|
||||
} else {
|
||||
self?.completion?(.close)
|
||||
}
|
||||
default:
|
||||
self?.completion?(.close)
|
||||
}
|
||||
}
|
||||
|
||||
state.bindings.alertInfo = alertInfo
|
||||
|
||||
Reference in New Issue
Block a user