TZStackView icon indicating copy to clipboard operation
TZStackView copied to clipboard

TZStackView not animating “outside” views as UIStackView

Open alexito4 opened this issue 9 years ago • 1 comments

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.

alexito4 avatar Apr 12 '16 16:04 alexito4

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?

Shaninnik avatar Jun 09 '16 12:06 Shaninnik