Attachment menu improvements

This commit is contained in:
Ilya Laktyushin
2022-02-22 07:04:41 +03:00
parent e70f17ff2d
commit 59595cb027
9 changed files with 62 additions and 34 deletions

View File

@@ -269,6 +269,8 @@ final class LocationPickerControllerNode: ViewControllerTracingNode, CLLocationM
private var validLayout: (layout: ContainerViewLayout, navigationHeight: CGFloat)?
private var listOffset: CGFloat?
var beganInteractiveDragging: () -> Void = {}
init(context: AccountContext, presentationData: PresentationData, mode: LocationPickerMode, interaction: LocationPickerInteraction, locationManager: LocationManager) {
self.context = context
self.presentationData = presentationData
@@ -654,6 +656,7 @@ final class LocationPickerControllerNode: ViewControllerTracingNode, CLLocationM
guard let strongSelf = self else {
return
}
strongSelf.beganInteractiveDragging()
strongSelf.updateState { state in
var state = state
state.displayingMapModeOptions = false