Animated checkmark made with CoreAnimation and Swift 3.0
- Simply install using Cocoapods, add
'pod WVCheckMark'
to your podfile
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()
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