Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Improve detail VC layout during animation #11

Merged
merged 1 commit into from
Jul 20, 2014

Conversation

deberle
Copy link
Contributor

@deberle deberle commented Jun 12, 2014

Fix layout jumps by calling layoutIfNeeded within the animation block.

Fix layout jumps by calling `layoutIfNeeded` within the animation block.
@bdbergeron
Copy link
Owner

Sorry for the delay in tending to this PR. Perhaps I'm missing something, but I can't see any difference made by calling layoutIfNeeded. Is there a particular use case that I should be looking at?

@deberle
Copy link
Contributor Author

deberle commented Jul 20, 2014

It improves the animation of the detail view while hiding / showing the master VC.
Watch the contents of the detail view to see the difference.
Switching to slow animation on the simulator might help.

@bdbergeron
Copy link
Owner

Oh wow, you're quite right! Very noticeable difference. I was focusing on the animation of the master VC when showing/hiding, not on the detail VC, so thanks for the clarification. I'll get this merged in right away.

bdbergeron added a commit that referenced this pull request Jul 20, 2014
Improve detail VC layout during animation
@bdbergeron bdbergeron merged commit 05eb13b into bdbergeron:master Jul 20, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants