    }
    
    public func navigate(to index: Int) {
-      guard !pages.isEmpty else { return }
+      guard !pages.isEmpty, index != currentIndex else { return }
       let index = min(index, pages.count - 1)
       switch index {
       case 0..<currentIndex:

   // MARK: - Init
   public convenience init(viewControllers: [UIViewController]) {
      self.init(transitionStyle: .scroll, navigationOrientation: .horizontal)
      self.pages = viewControllers
   }
   
   public required init?(coder: NSCoder) {

         completion?()
      }
   }

   fileprivate func _setPages(_ pages: [UIViewController]) {
      self.pages = pages
   }

   fileprivate func _setCurrentIndex(_ index: Int) {
      currentIndex = index
   }
