2

When i try to use CosmicMind's motion animation framework, I receive an error whenever I try an example. For example, taken straight from the Sample's repo:

    dateLabel.animate(.delay(1),
                         .duration(0.5),
                         .background(color: Color.cyan.base),
                         .completion({ [weak self] in

                            self?.dateLabel.animate(.delay(1),
                                                       .duration(0.5),
                                                       .background(color: Color.deepPurple.base))
                         }))

throws the error 'Extra argument in call'

I can't animate anything because I always receive this error. What can i do to fix it?

Thanks!

AashJ
  • 41
  • 3

1 Answers1

0

I had tested the animation with Material 2.8.1 and all worked correctly. Please make sure you are using the latest Material version. All the best!

CosmicMind
  • 1,499
  • 1
  • 10
  • 6