  
         self.view.setNeedsFocusUpdate()
         self.view.updateFocusIfNeeded()
-        
-        let gesture = UISwipeGestureRecognizer(target: self, action: #selector(swipeDown(_:)))
-        gesture.direction = .Down
-        
-        pageView.addGestureRecognizer(gesture)
-        
         
 
     }

                         minSpacingForCell : CGFloat(25.0),
                         minSpacingForLine: CGFloat(50.0) )
    
    // MARK:
    
    @IBAction func swipeDown(sender:UISwipeGestureRecognizer) {
        
        print( "swipe down");
    }
    
    func showSlide(at index:UInt) {
        if let doc = self.doc {

        return true;
        
    }
    
    
    
    /// Called when the screen’s focusedView has been updated to a new view. Use the animation coordinator to schedule focus-related animations in response to the update.
    override func didUpdateFocusInContext(context: UIFocusUpdateContext, withAnimationCoordinator coordinator: UIFocusAnimationCoordinator)
    {
        print( "PageView.didUpdateFocusInContext: focused: \(self.focused)" );
        
        
    }

    // MARK: Touch Handling

    
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        guard let firstTouch = touches.first else { return }
        let locationInView = firstTouch.locationInView(firstTouch.view)
        
        addSubview(pointer)
            
        var f = pointer.frame
        f.origin = locationInView
        
        pointer.frame = f
    }
    
    override func  touchesMoved(touches: Set<UITouch>, withEvent event: UIEvent?) {
        print("touchesMoved ")
    
        guard let firstTouch = touches.first else { return }
        
        let locationInView = firstTouch.locationInView(firstTouch.view)

        var f = pointer.frame
        f.origin = locationInView
        
        pointer.frame = f
    }
    
    override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) {
        print("touchesEnded ")
        pointer.removeFromSuperview()
    
    }
    
    override func touchesCancelled(touches: Set<UITouch>?, withEvent event: UIEvent?) {
        print("touchesCancelled ")
        pointer.removeFromSuperview()
    
    }
    
    // MARK: Event Handling
    /*
    override func pressesBegan(presses: Set<UIPress>, withEvent event: UIPressesEvent?) {
        for item in presses {
            if item.type == .Select {
                self.backgroundColor = UIColor.greenColor()
            }
        }
    }
    
    override func pressesEnded(presses: Set<UIPress>, withEvent event: UIPressesEvent?) {
        for item in presses {
            if item.type == .Select {
                self.backgroundColor = UIColor.whiteColor()
            }
        }
    }
    
    override func pressesChanged(presses: Set<UIPress>, withEvent event: UIPressesEvent?) {
        // ignored
    }
    
    override func pressesCancelled(presses: Set<UIPress>, withEvent event: UIPressesEvent?) {
        for item in presses {
            if item.type == .Select {
                self.backgroundColor = UIColor.whiteColor()
            }
        }
    }
    */
}


