eure / Animo

Bring life to CALayers with SpriteKit-like animation builders
MIT License
282 stars 27 forks source link

Can't interact with UIView after animation #6

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi there.

Basically I am having issues interacting with segments I have inside my UIView after an animation has been done. In other words, I can't seem to click any button, or scroll any text view. How come?

I have tried to play with completion blocks, and do myView.isUserInteractionEnabled = true etc. Any ideas on how I can fix this? If I stop the animation, the UIView moves back to the position I don't want it to be in. In other words, I want it to stay.

JohnEstropia commented 7 years ago

Hi, Animo uses CAAnimations behind the scenes, which means it only animates the CALayers for the target views. All animations have an options argument where you can tweak the fillMode and the removedOnCompletion properties so you might want to start experimenting around that.

If your code expects the view layout to actually change after the animation, you might want to use a different animation framework as Animo is particularly designed to give animations to already laid-out views.