VKCountdownTimerView
public class VKCountdownTimerView : UIView
-
Declaration
Swift
@IBInspectable public var lineWidth: CGFloat -
Declaration
Swift
@IBInspectable public var lineColor: UIColor -
Declaration
Swift
@IBInspectable public var trailLineColor: UIColor -
Declaration
Swift
@IBInspectable public var isLabelHidden: Bool -
Declaration
Swift
@IBInspectable public var labelFont: UIFont? -
Declaration
Swift
@IBInspectable public var labelTextColor: UIColor? -
Declaration
Swift
@IBInspectable public var timerFinishingText: String? -
Declaration
Swift
public weak var delegate: VKCountdownTimerDelegate? -
Declaration
Swift
public var useMinutesAndSecondsRepresentation: Bool -
Declaration
Swift
public var moveClockWise: Bool -
Declaration
Swift
public var isActive: Bool
-
Declaration
Swift
override public init(frame: CGRect) -
Declaration
Swift
required public init?(coder aDecoder: NSCoder) -
Declaration
Swift
override public func draw(_ rect: CGRect)
-
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
beginingValueValue to start countdown from.
intervalInterval 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()
VKCountdownTimerView Class Reference