WVCheckMark
Animated checkmark made with CoreAnimation and Swift 5.0
Installation
- Simply install using Cocoapods, add
'pod WVCheckMark'
to your podfile
Usage
import WVCheckMark
- WVCheckMark can be used with InterfaceBuilder. Just create a custom view and set the class to
WVCheckMark
and link to@IBOutlet weak var check: WVCheckMark!
- Run the checkmark
check.start()
or run the Xcheck.startX()
Functions
setColor(color: CGColor)
sets color of linessetLineWidth(width: CGFloat)
sets width of the linesetDuration(speed: CGFloat)
sets the duration of circle animationsetDamping(damp: CGFloat)
sets the spring damping for the check or X animationset(color:CGColor, width: CGFloat, damping: CGFloat, duration: CGFloat)
sets all above parameters in one call