Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't interact with UIView after animation #6

Open
ghost opened this issue Feb 20, 2017 · 1 comment
Open

Can't interact with UIView after animation #6

ghost opened this issue Feb 20, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 20, 2017

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant