This pull request fixes the issue #56.
At the time when the animation in the completion block of the first animation executes the self.card.originalFrame changes because of detailVC.layout(originalFrame, isPresenting: false, transform: bounce) in the first part of the animation. That is why we have to preserve the originalFrame before executing the animations and use that value when animating.
This pull request fixes the issue #56.
At the time when the animation in the completion block of the first animation executes the
self.card.originalFrame
changes because ofdetailVC.layout(originalFrame, isPresenting: false, transform: bounce)
in the first part of the animation. That is why we have to preserve theoriginalFrame
before executing the animations and use that value when animating.