Skip to content

bhavin250495/Scratch-Card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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")

Releases

No releases published

Packages

No packages published

Languages