         }
     }
     private func removeFromContainerView(aView: UIView) {
-        for gestureRecognizer in aView.gestureRecognizers as! [UIGestureRecognizer] {
+        for gestureRecognizer in aView.gestureRecognizers! {
             if gestureRecognizer.isKindOfClass(ZLPanGestureRecognizer.classForCoder()) {
                 aView.removeGestureRecognizer(gestureRecognizer)
             }

        setup()
    }
    
    required public init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        setup()
    }

            return .Up
        case let (x, y) where abs(x)<abs(y) && y>0:
            return .Down
        case (_, _):
            return .None
        }
    }
