Skip to content

Conversation

maniramezan
Copy link

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 maniramezan changed the title Use Use a different method to estimate the size which take Font type into account Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant