-1

I'm actually new to iOS development with swift. So to make it short, i want to make this graphic in the Storyboard : RPM DASH

I'm trying to make rpm bar with received data in the background controlling the animation progress, and i have no idea from where to begin, and what kind of tool (Class, API, .. ) to use.

This is a video of what i want to reproduce (12 sec) : https://www.youtube.com/watch?v=24cphMoAcyU ( only the animation of that bar)

I want to know :

  • how to create that bar in xcode

  • how to animate it with data in swift

already tried PaintCode, it may be possible to make it, but is there an xcode way.

So anybody please any help, showing me how things can be done. thanks

rmaddy
  • 314,917
  • 42
  • 532
  • 579
ElyesDer
  • 68
  • 1
  • 7

1 Answers1

0

You should create UIBezierPath with a desired shape and then animate its strokeEnd property using CABasicAnimation .

See more about: UIBezierPath and CABasicAnimation, as well as some posts with sample code here, here, and here.

Community
  • 1
  • 1
Fengson
  • 4,751
  • 8
  • 37
  • 62