         
         segmentedControl.indexChangeBlock = { (index:NSInteger) in
         
-            self.swipeView.scrollToPage(index, duration: 0.3)
+            self.swipeView.scrollToPage(index, duration: self.kDuration)
         }
         
         self.view.addSubview(segmentedControl)

    // MARK: - 水平向左触发下一页最小移动距离
    
    let kHorizontalToLeftMinMoveDistance:CGFloat = 30
    
    // MARK: - Items
    

            
            if fabs(translation.x) > kHorizontalToLeftMinMoveDistance {
                
                swipeView.scrollToPage(1, duration: kDuration)
            } else {
                
                swipeView.scrollToPage(0, duration: kDuration)
            }
        }
    }
