I'm trying to get my animations to work on my labels I have programmatically but when I add them it seems to override my .isuserinteractionenabled. How do I enable these animations?
Code Block override func viewDidLoad() { super.viewDidLoad() proLabel.frame = CGRect(x: 120, y: 840, width: 45, height: 16) proLabel.text = "profit" proLabel.textColor = UIColor.black proLabel.backgroundColor = UIColor.systemBlue proLabel.font = UIFont(name: "System", size: 15) proLabel.isUserInteractionEnabled = true self.content.addSubview(proLabel) revLabel.frame = CGRect(x: 20, y: 840, width: 65, height: 16) revLabel.text = "revenue" revLabel.textColor = UIColor.black revLabel.backgroundColor = UIColor.systemRed revLabel.font = UIFont(name: "System", size: 15) revLabel.isUserInteractionEnabled = true self.content.addSubview(revLabel) let tapGestureR = UITapGestureRecognizer(target: self, action: #selector(self.tapRev)) revLabel.addGestureRecognizer(tapGestureR) let tapGestureP = UITapGestureRecognizer(target: self, action: #selector(self.tapPro)) proLabel.addGestureRecognizer(tapGestureP) animatePro() //animation added animateRev() //animation added buttonNext.layer.cornerRadius = 10 }