6202: Improve how pan gesture is handled

This commit is contained in:
MaximeE
2022-06-02 11:34:01 +02:00
parent 4e40fb8545
commit f68d73cf70
4 changed files with 18 additions and 13 deletions
@@ -76,7 +76,10 @@ struct LocationSharingView: View {
showsUserLocation: context.viewState.showsUserLocation,
userLocation: $context.userLocation,
mapCenterCoordinate: $context.pinLocation,
errorSubject: context.viewState.errorSubject)
errorSubject: context.viewState.errorSubject,
userDidPan: {
context.send(viewAction: .userDidPan)
})
if context.viewState.isPinDropSharing {
LocationSharingMarkerView(backgroundColor: theme.colors.accent) {
Image(uiImage: Asset.Images.locationPinIcon.image)