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

TZStackView not animating “outside” views as UIStackView #77

Open
alexito4 opened this issue Apr 12, 2016 · 1 comment
Open

TZStackView not animating “outside” views as UIStackView #77

alexito4 opened this issue Apr 12, 2016 · 1 comment

Comments

@alexito4
Copy link

Hi!
I’ve been replacing UIStackView with TZStackView and I’ve found that it handles animations (when arranged subviews are hidden) in a different way.

You can check the example on my fork.

The basic idea is having the stack view size itself depending on the content and then have another view attached at the bottom of it (as a sibling in the hierarchy). Then when hiding any arranged subview with animation the stack view should resize itself and the outside view move accordingly.

The issue is that when that happens with TZStackView, the stack view is animated but the outside view isn’t. Check this .gif for a quick look.

UIStackView

animationui

TZStackView

animationtz

Cheers.

@Shaninnik
Copy link

I am having this issue too.

In my case I have nested TZStackViews, and if I animate hidden property of the view inside child TZStackView, all views under this TZStackView in parent TZStackView just moves without the animation.

Maybe someone has a workaround?

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

2 participants