SRCountdownTimer icon indicating copy to clipboard operation
SRCountdownTimer copied to clipboard

Set Time Label without needing to start the timer

Open petrubabalau opened this issue 6 years ago • 1 comments

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()
    }

petrubabalau avatar Nov 02 '18 14:11 petrubabalau

How do you start it? By another method?

rsrbk avatar Oct 24 '19 03:10 rsrbk