GradientCircularProgress icon indicating copy to clipboard operation
GradientCircularProgress copied to clipboard

Use a different method to estimate the size which take Font type into account

Open maniramezan opened this issue 5 years ago • 0 comments

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!)

maniramezan avatar Apr 26 '20 05:04 maniramezan