                     withTopOffset top: CGFloat = 0, bottomOffset bottom: CGFloat = 0,
                     useConstraints: Bool = true) {
         if useConstraints {
-            let borderView = addBorderView(from: border, horizontal: false)
+            let borderView = addBorderView(from: border, direction: .Vertical)
             borderView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true
             borderView.topAnchor.constraint(equalTo: topAnchor, constant: top).isActive = true
             bottomAnchor.constraint(equalTo: borderView.bottomAnchor, constant: bottom).isActive = true

                    withLeftOffset left: CGFloat = 0, rightOffset right: CGFloat = 0,
                    useConstraints: Bool = true) {
        if useConstraints {
            let borderView = addBorderView(from: border, horizontal: true)
            borderView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
            borderView.leftAnchor.constraint(equalTo: leftAnchor, constant: left).isActive = true
            rightAnchor.constraint(equalTo: borderView.rightAnchor, constant: right).isActive = true

                    withTopOffset top: CGFloat = 0, bottomOffset bottom: CGFloat = 0,
                    useConstraints: Bool = true) {
        if useConstraints {
            let borderView = addBorderView(from: border, direction: .Vertical)
            borderView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true
            borderView.topAnchor.constraint(equalTo: topAnchor, constant: top).isActive = true
            bottomAnchor.constraint(equalTo: borderView.bottomAnchor, constant: bottom).isActive = true
