Skip to content

Set Time Label without needing to start the timer #23

@petrubabalau

Description

@petrubabalau

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions