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
Decreasing resizing not animated #156
Comments
Hi @rr-dw, I have updated the source code of the IntroView from the PinLayoutSample example app that shows that resizing works correctly in both direction. You may have a slight issue in your codes.
|
Hi @lucdion, thanks for your reply. I tried your code and yes it is really working correctly and actually I was able to track the real issue.
Both animations work correctly when testView is just simple UIView: Issue is, when there is another child view inside of this view But its child view(red one) is animated only when expanding occurs: Edit: |
@rr-dw could you share a sample app that demonstrates your issue? |
@lucdion I just updated my previous commend with: |
yes @rr-dw, you can animate as many views as you want, you just need to synchronise those animations (same delay, same interval, same animation type). I'll close this issue since the issue is not related to PinLayout. But we can continue to discussion 🙂 |
@lucdion thanks for your help, yes it works now :). |
Hi.
When I'm animating view size change, the animation is executed only when view is increasing in size, but when the view is decreased in size, animation is not executed and view is resized right away.
Example:
Lets have a view:
view.pin.width(50).height(50).left().top()
Lets increase view size:
UIView.animate(withDuration: 0.16) { view.pin.width(100).height(100) }
.. OK, view was resized with animationLets decrease view size:
UIView.animate(withDuration: 0.16) { view.pin.width(30).height(30) }
.. NOT OK, no animation happens here, view is just resized to 30x30.Is this a bug? Or do I need to do something more to get decreasing animation?
The text was updated successfully, but these errors were encountered: