mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
implemented the usage of the live location manager permission handling in the location sharing screen.
This commit is contained in:
@@ -12,6 +12,7 @@ import MatrixRustSDK
|
||||
|
||||
enum LocationSharingViewError: Error, Hashable {
|
||||
case missingAuthorization
|
||||
case missingAlwaysAuthorization
|
||||
case mapError(MapLibreError)
|
||||
}
|
||||
|
||||
@@ -142,6 +143,7 @@ struct LocationSharingScreenBindings {
|
||||
enum LocationSharingScreenViewAction {
|
||||
case close
|
||||
case selectLocation
|
||||
case startLiveLocation
|
||||
case centerToUser
|
||||
case userDidPan
|
||||
}
|
||||
@@ -157,6 +159,12 @@ extension AlertInfo where T == LocationSharingViewError {
|
||||
message: L10n.dialogPermissionLocationDescriptionIos(InfoPlistReader.main.bundleDisplayName),
|
||||
primaryButton: primaryButton,
|
||||
secondaryButton: secondaryButton)
|
||||
case .missingAlwaysAuthorization:
|
||||
self.init(id: error,
|
||||
title: L10n.dialogAllowAccess,
|
||||
message: L10n.dialogPermissionLiveLocationDescriptionIos(InfoPlistReader.main.bundleDisplayName),
|
||||
primaryButton: primaryButton,
|
||||
secondaryButton: secondaryButton)
|
||||
case .mapError(.failedLoadingMap):
|
||||
self.init(id: error,
|
||||
title: L10n.errorFailedLoadingMap(InfoPlistReader.main.bundleDisplayName),
|
||||
|
||||
Reference in New Issue
Block a user