     // MARK:- 定义属性
     fileprivate var currentIndex : Int = 0
     fileprivate var titles : [String]
+    fileprivate var margin : CGFloat = 0
     weak var delegate : PageTitleViewDelegate?
     
     // MARK:- 懒加载属性

        currentIndex = targetIndex
    }
}

        scrollView.bounces = false
        return scrollView
    }()
    
    fileprivate lazy var scrollLine : UIView = {
        let scrollLine = UIView()
        scrollLine.backgroundColor = UIColor.orange
