-1

I'm trying to animate a line moving in a circle then using this library to add a second shimmer animation. The problem is they never both work, either one or the other will animate depending how if conditionIsTrue how can I chain them so that they work in succession?

                      Circle()
                        .animation(.linear, value: 0.8)
                        .if(conditionIsTrue)) { $0.shimmering(active: true, duration: 0.9, bounce: false) }
GarySabo
  • 5,806
  • 5
  • 49
  • 124

1 Answers1

0

Currently no chaining animation in SwiftUI. You can add a delay to the shimmering animation to run it after the first animation

Hieu Dinh
  • 692
  • 5
  • 18