Why does image literals not work in Xcode 11.2.1?
Why does it not work? I am on Xcode 11.2.1. I have tried restarting my Mac, but it still does not work.
Solution 1:
You need to change the following
diceImageView1.image =
to
diceImageView1.imageView?.image = 'image literal'
Solution 2:
You have to write as follow:
diceImageView1.imageView?.image = // type Image literal
Or
diceImageView1.setImage(// type Image literal, for: .normal)