Getting started creating custom view transitions

后端 未结 3 651
长发绾君心
长发绾君心 2021-02-06 08:15

I\'m looking for tutorials on creating custom view transitions.

In particular, transitions that involve elements other than just the UIViews being affected, such as play

3条回答
  •  醉话见心
    2021-02-06 08:43

    CoreAnimation animations work by recording differences in a very specific subset of UIView properties. They do not respond to any user-defined properties, and simply don't do more advanced transitions than you've already seen in the demos. You could take a screenshot of your current view, save it in memory as a texture, hide the old view and simultaneously show an OpenGL view. Then using the screenshot texture and various mesh animations, you could render your custom transition (including alpha blending around the crumpled/folded edges), then dispose of the OpenGL view to fully reveal the target view. Seems like a fun project, and you'd be in rare company to accomplish it.

提交回复
热议问题