Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text not fully appeared #39

Open
belalmedhat97 opened this issue Jun 25, 2020 · 1 comment
Open

text not fully appeared #39

belalmedhat97 opened this issue Jun 25, 2020 · 1 comment

Comments

@belalmedhat97
Copy link

Screen Shot 2020-06-25 at 5 07 24 AM

text in steptext not fully appeared I Do as Doc Said but Can't handle This

@Ramachaandran
Copy link

Ramachaandran commented Jun 1, 2021

Hi,
If you want to show the text at multiple line, please replace following line in renderBottomTextIndexes or or renderTopTextIndexes or renderTextIndexes.

  • textLayer.alignmentMode = .center
  • textLayer.isWrapped = true
    textLayer.sizeWidthToFit()
  • let width = (self.frame.size.width)/CGFloat(numberOfPoints)
  • textLayer.frame = CGRect(x: centerPoint.x - width/2, y: centerPoint.y - textLayer.bounds.height/2 + _progressRadius + textDistance, width: width, height: 70)

This helped me show longest text in multiple line with centre alignment

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

No branches or pull requests

2 participants