StrithroughLabel
StrithroughLabel provides an easy way to animates strikethrough effect in a label using bezier path animation.
Installation
CocoaPods
pod 'StrikethroughLabel'
Manually
You can directly copy and paste the file StrikethroughLabel
to your project.
Usage
-
Use
strikeThroughText()
to start a new animation with any duration and line color you want. -
Use
hideStrikeTextLayer
to hides the line. -
Use
showStrikeTextLayer
to present a hidden line again (calls strikeThroughText with duration = 0.0)
Bugs and Feedback
For bugs, questions and discussions please use the Github Issues.