Skip to content

TZStackView not animating “outside” views as UIStackView #77

@alexito4

Description

@alexito4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions