Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 764 Bytes

File metadata and controls

14 lines (11 loc) · 764 Bytes

SimpleCircularCountDownAnimation

Sample macOS project using Objective-C that shows how to create a simple animated countdown effect.

Steps to use

  1. Add CountDownCircleView.h/m files in project
  2. Add a custom nsview on UI and set it's class to CountDownCircleView
  3. Set max value for countdown using maxSeconds
  4. Set current value for countdown using secondsDigit
  5. Current seconds will be shown in center of view and font size is dynamic based on view size
  6. Note: please change view center and radious of circle in onDraw method as per the frame of your view (I haven't made that dynamic, though I should have)

You can change colour and font etc in onDraw method of CountDownCircleView.

Feel free to the edit the code, it's Free no license applied.