This library is a port of identicon library that generates identicon.
pod 'IGIdenticon', '~> 0.3.0'
Copy all files from IGIdenticon
folder in your project.
Note: You need to link the CoreGraphics
framework.
#import "IGIdenticon.h"
...
IGImageGenerator *imageGenerator = [[IGImageGenerator alloc] initWithImageProducer:[IGSimpleIdenticon new] hashFunction:IGJenkinsHashFromData];
UIImage *image = [imageGenerator imageFromUInt32:arc4random() size:iconSize]