You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I am trying to make chained animation with a view moving in, and then after sometime fading out, however I am getting strange results - view is moving in, and then moving out (as if it was animateTo) and in the same time fading out. Here is the code:
stringCard.animation = "squeezeLeft"
stringCard.curve = "easeOut"
stringCard.force = 1.0
stringCard.duration = 3.5
stringCard.animateNext(completion: {
stringCard.animation = "fadeOut"
stringCard.curve = "easeOut"
stringCard.force = 1.0
stringCard.delay = 1.0
stringCard.duration = 1.5
stringCard.animateNext { // was trying stringCard.animateToNext here with same result
print("finished")
}
})
If i am doing only the fade in/fade out everything works good, or if i am doing something like this:
So I am trying to make chained animation with a view moving in, and then after sometime fading out, however I am getting strange results - view is moving in, and then moving out (as if it was animateTo) and in the same time fading out. Here is the code:
If i am doing only the fade in/fade out everything works good, or if i am doing something like this:
Everything works great also (move in, then move out). Is it some kind of unexpected behavior here or am I doing something wrong?
The text was updated successfully, but these errors were encountered: