Scratch card view built in native Swift / iOS
Drag UI view in storyboard and change classname to ScratchCard
@IBOutlet weak var scratchCard: ScratchCard!
scratchCard.scratchDelegate = self
Implement methods
func scratch(percentage value: Int) {
foo(value)
}
scratchCard.scratchImage = UIImage("YOUR-IMAGE")