How do I enable Voice Over 3 finger swipe gesture for UIPageViewController

Ok after much searching I found that I need to override the method below to detect the VO Swipe. From there I can manually present the next and previous view controllers.

-(BOOL)accessibilityScroll:(UIAccessibilityScrollDirection)direction {

    if (direction == UIAccessibilityScrollDirectionRight) {
      //Previous Page

    } else if (direction == UIAccessibilityScrollDirectionLeft) {
     //Next Page   
    }

    return YES;
}

Thanks Epic, this helped me a lot! Just thought I would add a Swift version for folks.

Swift 4.0:

override func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool {
    if direction == .right {
        // Previous Page
    } else if direction == .left  {
        // Next Page
    } 
    return true
}