Explorar el Código

Merge pull request #1256 from Infomaniak/new-tab-bar

Fix for #1255
Marino Faggiana hace 4 años
padre
commit
8b3b305915
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      iOSClient/Main/NCMainTabBar.swift

+ 2 - 5
iOSClient/Main/NCMainTabBar.swift

@@ -80,11 +80,8 @@ import Foundation
     }
 
     override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
-        if self.bounds.contains(point) {
-            //inside tab bar
-            let buttonRadius: CGFloat = 60
-            let val = abs(self.center.x - point.x) > buttonRadius || abs(point.y) > buttonRadius
-            print(val)
+        let button = self.viewWithTag(99)
+        if self.bounds.contains(point) || (button != nil && button!.frame.contains(point)) {
             return true
         } else {
             return false