I have button inside a CollectionViewCell and when tapped I want to run an animation. The animation doesn't run and I'm not sure why.
Inside the Cell class
@IBAction func hoursExpandBtnTapped(_ sender: Any) {
UIView.animate(withDuration: 3, delay: 0, options: .curveLinear) { [self] in
addressLbl.frame = CGRect(x: addressLbl.frame.minX, y: addressLbl.frame.minY, width: 20, height: addressLbl.frame.height)
} completion: { _ in
}
}