     // MARK: - 水平向左触发下一页最小移动距离
     
     let kHorizontalToLeftMinMoveDistance:CGFloat = 30
+    
+    // MARK: - 页面切换时间
+    let kDuration:Double = 0.3
     
     // MARK: - Items
     

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

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