             }
             progressView.frame = CGRect(origin: progressView.frame.origin, size: CGSize(width: frame.width * progress, height: frame.height))
             progressView.roundCorner(roundingCorners: progressRoundCorners, cornerRadius: CGSize(width: frame.size.height / 2, height: frame.size.height / 2))
+            progressLabel.text = String(format: "%d%%", Int(progress * 100))
         }
     }
     

    
    private var progressView = UIView(frame: .zero)
    
    @IBInspectable public var progressTintColor = UIColor.red {
        didSet {
            progressView.backgroundColor = progressTintColor
        }


@IBDesignable
public class RoundCornerProgressView: UIView {
    
    public var progressLabel = UILabel(frame: .zero)
    
    @IBInspectable public var labelDisplay: Bool = true {
        didSet {
            progressLabel.isHidden = !labelDisplay
        }
    }
    
    @IBInspectable public var labelColor: UIColor = UIColor.black {
        didSet {
            progressLabel.textColor = labelColor
        }
    }
    
    @IBInspectable public var trackRoundCorners: UIRectCorner = [.topRight, .bottomRight, .topLeft, .bottomLeft] {
        didSet {
