Altura de la barra de progreso Swift 5

//Create a custom class of UIProgressView and override the layoutSubviews function
//Also add a height constraint to the ProgressView on the storyboard

override func layoutSubviews() {
        super.layoutSubviews()

        let maskLayerPath = UIBezierPath(roundedRect: bounds, cornerRadius: 4.0)
        let maskLayer = CAShapeLayer()
        maskLayer.frame = self.bounds
        maskLayer.path = maskLayerPath.cgPath
        layer.mask = maskLayer
    }
Everybody Poops