     shapeLayer.strokeColor = borderColor!.cgColor
     shapeLayer.lineWidth = borderWidth
     shapeLayer.frame = bounds
+    if borderType == .dash {
+      shapeLayer.lineJoin = kCALineJoinRound
+      shapeLayer.lineDashPattern = [6, 3]
+    }
     layer.insertSublayer(shapeLayer, at: 0)
   }
 

    } else {
      drawBorders()
    }
    configureBorderType()
  }

  private func clearLayer() {


fileprivate extension BorderDesignable where Self: UIView {
  func drawBorders() {
    let shapeLayer = CAShapeLayer()
    shapeLayer.name = "borderSideLayer"
    shapeLayer.path = makeBorderPath().cgPath
