I\'m trying to create a UIImage View programmatically, I have a new view and I tried doing this
let imageName = \"yourImage.png\" yourview.backgroundColor =
You can use above in one line.
let imageView = UIImageView(image: UIImage(named: "yourImage.png")!)