using image literal to set the image views picture doesn't seem to work

all it does is error

you need this code :


import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var imgDice1: UIImageView!

    override func viewDidLoad() {


        // Do any additional setup after loading the view.

        imgDice1.image = UIImage(named: "DiceTwo")




imgDice1.image = UIImage(named: "DiceTwo")

DiceTwo is the new images file name