Browse Source

Fix FloatingPanel dismisss on background

Looks like the behaviour was changed in the package.

Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
Henrik Storch 3 years ago
parent
commit
5742ddf38a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      iOSClient/Menu/NCMenu.swift

+ 1 - 2
iOSClient/Menu/NCMenu.swift

@@ -110,12 +110,10 @@ extension NCMenu: FloatingPanelControllerDelegate {
     }
 
     func floatingPanel(_ fpc: FloatingPanelController, animatorForDismissingWith velocity: CGVector) -> UIViewPropertyAnimator {
-        print(#function, fpc.state)
         return UIViewPropertyAnimator(duration: 0.1, curve: .easeInOut)
     }
 
     func floatingPanel(_ fpc: FloatingPanelController, animatorForPresentingTo state: FloatingPanelState) -> UIViewPropertyAnimator {
-        print(#function, fpc.state)
         return UIViewPropertyAnimator(duration: 0.3, curve: .easeInOut)
     }
 
@@ -168,6 +166,7 @@ class NCMenuPanelController: FloatingPanelController {
 
         self.surfaceView.backgroundColor = NCBrandColor.shared.systemBackground
         self.isRemovalInteractionEnabled = true
+        self.backdropView.dismissalTapGestureRecognizer.isEnabled = true
         self.surfaceView.layer.cornerRadius = 16
     }
 }