VKCountdownTimerView

public class VKCountdownTimerView : UIView

Inits

  • Declaration

    Swift

    override public init(frame: CGRect)
  • Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Declaration

    Swift

    override public func draw(_ rect: CGRect)

Public methods

  • Starts the timer and the animation. If timer was previously runned, it’ll invalidate it.

    Declaration

    Swift

    public func start(beginingValue: Int, interval: TimeInterval = 1)

    Parameters

    beginingValue

    Value to start countdown from.

    interval

    Interval between reducing the counter(1 second by default)

  • Pauses the timer with saving the current state

    Declaration

    Swift

    public func pause()
  • Resumes the timer from the current state

    Declaration

    Swift

    public func resume()
  • Reset the timer

    Declaration

    Swift

    public func reset()
  • End the timer

    Declaration

    Swift

    public func end()