mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
5858: Add pin drop feature
This commit is contained in:
@@ -91,6 +91,15 @@ class LocationSharingViewModel: LocationSharingViewModelType, LocationSharingVie
|
||||
}
|
||||
|
||||
completion?(.share(latitude: location.latitude, longitude: location.longitude))
|
||||
case .sharePinLocation:
|
||||
guard let pinLocation = state.bindings.pinLocation else {
|
||||
processError(.failedLocatingUser)
|
||||
return
|
||||
}
|
||||
|
||||
completion?(.share(latitude: pinLocation.latitude, longitude: pinLocation.longitude))
|
||||
case .goToUserLocation:
|
||||
state.bindings.pinLocation = nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user