An easy way to generate circular placeholder images.
pod 'IPImage'
let ipimage = IPImage(text: "Neil Patrick Harris", radius: 30, font: UIFont(name: "Cochin-Italic", size: 30), textColor: nil, randomBackgroundColor: true)
imageView.image = ipimage.generateImage()See documentation.