Skip to content

Sample macOS project that shows how to create a simple animated countdown effect.

Notifications You must be signed in to change notification settings

mpogra/SimpleCircularCountDownAnimation

Repository files navigation

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.

About

Sample macOS project that shows how to create a simple animated countdown effect.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published