 //UIScrollViewDelegate
 extension FTDLoopView: UIScrollViewDelegate {
     
-   public func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
+    public func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
         if autoScroll {//关闭定时器
-           finishRunLoop()
+            finishRunLoop()
             //自动滑动过程中，手动拖拽时，修改状态，为了scrollViewDidEndDecelerating中计算准确的偏移量
             autoScrolling = false
         }

    //是否自动滚动,默认不自动滚动
    fileprivate var autoScroll: Bool = false {
        willSet {
           autoScrolling = newValue
        }
    }
    

    }
    
    //刷新滚动视图
    public func reloadLoopView(resource: [AnyObject]) {
        //数据源
        sourceArray = resource
    }
