I used https://github.com/Chintan-Dave/UIImageScanlineFloodfill to implement Scanline flood fill in my swift code. Sometimes the image is filled sometimes it throws an exception like
Thread 1: EXC_BAD_ACCESS (code=1, address=0x10b48427c)
in getColorCode function of the UIImage+FloodFill.m file which is obj-c I used bridging header to implement the code please help...