GLScratchCard
GLScratchCard copied to clipboard
I loved the way payments app's like Google pay and PhonePe used scratch card option to reward it's user. Hence with 💛 cloned the same scratch card effect for you guys out there
need to change UIGraphicsBeginImageContext(self.frame.size) with UIGraphicsBeginImageContextWithOptions(self.frame.size, false, UIScreen.main.scale)
I added the required code from GitHub but scratching image speed is too slow in the simulator. Maybe simulator issue but still need to check. Please check and help
Application crash at large scale of scratchCardView on line -` pixelData[y * width + x] == 0` (Thread 1: EXC_BAD_ACCESS (code=1, address=0x7fab776e0000)). The number of loop iterations in this function...