                         self.currentPageIndex = index
                     }
                     completion?(viewController, animated, finished)
+                    self.isTransitioning = false
             })
             
         } else {

    // MARK: Page management
    //
    
    public func reloadPages() {
        self.reloadPages(reloadViewControllers: true)
    }

        }
    }
    
    /// Whether user interaction is enabled on the page view controller.
    ///
    /// Default is TRUE
    public var isUserInteractionEnabled: Bool = true {
        didSet {
            self.pageViewController.scrollView?.isUserInteractionEnabled = isUserInteractionEnabled
        }
    }
    
    /// Whether the page view controller is currently transitioning between pages.
    private(set) var isTransitioning = false {
        didSet {
            self.isUserInteractionEnabled = !self.isTransitioning
        }
    }
    
    //
    // MARK: Lifecycle
    //
