0

I am using Motion library from CosmicMind to add animations in my app. I tried as the documentation said. Though documentation has a different syntax. But I changed it to as it should be according to current swift syntax. But it's not working.

let animatations: [MotionAnimation] = [.delay(1), .duration(5), .background(color: .red), .border(color: .purple)]
                    cell.button.animate(animatations, completion: {

                    })

Here button is a UIButton in my custom UITableViewCell. No animation worked.

Ahsan Aasim
  • 1,177
  • 3
  • 14
  • 40

0 Answers0