DAExpandAnimation icon indicating copy to clipboard operation
DAExpandAnimation copied to clipboard

Set frontView frame in expanding animation *after* calling prepareExpandingView.

Open fe9lix opened this issue 10 years ago • 1 comments

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...).

fe9lix avatar Jan 08 '16 16:01 fe9lix

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.

ifitdoesntwork avatar Jan 11 '16 06:01 ifitdoesntwork