SRCountdownTimer
SRCountdownTimer copied to clipboard
Set Time Label without needing to start the timer
It will be useful have to have the possibility to display the inner label when initializing the Countdown timer without starting it. Something like this:
public func initialize(beginingValue: Int, interval: TimeInterval = 1) {
self.beginingValue = beginingValue
self.interval = interval
totalTime = TimeInterval(beginingValue) * interval
elapsedTime = 0
timer?.invalidate()
currentCounterValue = beginingValue
setNeedsDisplay()
}
How do you start it? By another method?