GradientCircularProgress
GradientCircularProgress copied to clipboard
Use a different method to estimate the size which take Font type into account
Using custom font mess up the ratio label and it shows truncated text. You can try it by using following code in the sample project:
var style = styleList[seletedStyleIndex].1
style.ratioLabelFont = UIFont(name: "Lato-Bold", size: 18.0)
progressView = progress.showAtRatio(frame: getRect(), display: displayFlag, style: style)
progressView?.layer.cornerRadius = 12.0
view.addSubview(progressView!)