To be on the safer side make sure to type the code complete like this
diceImageView1.image = #imageLiteral()
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: