DAExpandAnimation
DAExpandAnimation copied to clipboard
Set frontView frame in expanding animation *after* calling prepareExpandingView.
Set frontView frame in expanding animation after calling prepareExpandingView (animation adapter might want to work with the original frame, for instance for creating a snapshot view...).
The behavior was intended: prepareExpandingView is meant to be called on the presented view controller to give the latter a chance to adjust some subviews knowing its view's frame at animation start. Also it is not always appropriate to take a snapshot of the presented view since its original frame could differ from expandedFrame. Or if you need to take a snapshot of the presenting view, you can do it in your prepareForSegue implementation.