 
 public class UIViewFrameExtension {
     private var view: UIView
-    
+
     fileprivate init(_ view: UIView) {
         self.view = view
     }
-    
+
     /// 视图左上角横坐标值
     public var x: CGFloat {
         get {

        switch direction {
        case .horizontal:
            line.frame = CGRect(x: startPoint.x, y: startPoint.y, width: length, height: width)
            
        case .vertical:
            line.frame = CGRect(x: startPoint.x, y: startPoint.y, width: width, height: length)
        }

    public var rat: UIViewFrameExtension {
        return UIViewFrameExtension(self)
    }

    fileprivate var rat_x: CGFloat {
        get {
            return self.frame.origin.x
