UIView surface custom transformation/animation (like 'a water drop effect')

后端 未结 2 941
野趣味
野趣味 2021-02-09 16:35

What is the way to implement custom transformation (+ animation) on a view surface (similar to the images attached) (not

2条回答
  •  鱼传尺愫
    2021-02-09 16:48

    Read this excellent blog post by Bartosz Ciechanowski:

    http://ciechanowski.me/blog/2014/05/14/mesh-transforms/

    To wrap it up: Apple does this with private API around a class called 'CAMeshTransform'.

    The author proposes an self-written substitute:

    https://github.com/Ciechan/BCMeshTransformView

    It's pretty amazing actually!

提交回复
热议问题