Sample macOS project using Objective-C that shows how to create a simple animated countdown effect.
- Add CountDownCircleView.h/m files in project
- Add a custom nsview on UI and set it's class to CountDownCircleView
- Set max value for countdown using maxSeconds
- Set current value for countdown using secondsDigit
- Current seconds will be shown in center of view and font size is dynamic based on view size
- 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.