Skip to content

A simple countdown timer component for iOS apps written in Swift.

License

Notifications You must be signed in to change notification settings

sanju-naik/CountdownTimer

 
 

Repository files navigation

CountdownTimer

Swift Library to implement Countdown timer in elegant way & Show it on UI.

This repository Contains a Sample demo project to demonstrate how to use TimerManager class in your project to show Count down timer on UI. Its Very simple & straightforward, download this project & include TimerManager class into your project & then call


TimerManager.start(withSeconds:) , Pass time in Secods to this method from your ViewController.

and show timer on UI using this.


TimerManager.timeString = { time, ends in
            if ends == false {
                self.timerLabel.text = time
            } else {
                // Perform here the task you want to do after timer finishes.
            }
        }

Once Timer ends perform the task you wanted to perform.

About

A simple countdown timer component for iOS apps written in Swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%