My UIButton instance is not highlighting when pressed. I\'m pretty sure my code is correct. This only happens in this specific class that I am using. I\'m guess
UIButton
Your code is correct except this line let backButton = UIButton(). Here you need to say button Type. Either you can init with Frame or Button Type
let backButton = UIButton()