Change image of a button when clicking it Xcode
I am trying to change the the image of a button when i click it and I'm using the method below: @IBOutlet weak var firstCard1: UIButton! @IBAction func firstCard(_ sender: UIButton) { let blueCard = UIImage(named: "blue_back") firstCard1.setImage(blueCard, for: .normal)…