Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 598 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 598 Bytes

Scratch-Card

Scratch card view built in native Swift / iOS

Usage

Drag UI view in storyboard and change classname to ScratchCard

To get progress updates

@IBOutlet weak var scratchCard: ScratchCard!

scratchCard.scratchDelegate = self 

Implement methods

     func scratch(percentage value: Int) {
    
     foo(value)
    }

Scratch image can you added through code and storyboard both

scratchCard.scratchImage = UIImage("YOUR-IMAGE")