             if let handler: AnyObject = actionHandler {
                 removeTarget(handler, action: "handleGesture:")
             }
-                    if let action = newValue {
+            if let action = newValue {
                 actionHandler = PanGestureHandler(action)
                 addTarget(actionHandler!, action: "handleGesture:")
             } else {

            init(_ action: ScreenEdgePanAction) {
            self.action = action
        }
            func handleGesture(gestureRecognizer: UIScreenEdgePanGestureRecognizer) {
            action(location: gestureRecognizer.location, state: gestureRecognizer.state)
        }
    }

            if let handler: AnyObject = actionHandler {
                removeTarget(handler, action: "handleGesture:")
            }
            if let action = newValue {
                actionHandler = TapGestureHandler(action)
                addTarget(actionHandler!, action: "handleGesture:")
            } else {
