Why am I getting this warning when I add the target to my UIButton in my controller? (the warning and code is stated below) – Ios swift
I am programmatically creating a button and am receiving this warning for every button I create when I add the "button.addTarget" line of code to it. The code is below: let logoutButton: UIButton = { let button = UIButton(type: .system)…