Applying multiple transforms to a UIView / CALayer

前端 未结 4 520
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 17:29

Is there any problem applying multiple transforms to a UIView and it\'s corresponding CALayer?

Specifically, can you \"mix and match\" CATransform3Ds with CGAffineTr

4条回答
  •  长情又很酷
    2020-12-05 18:14

    I realize this doesn't answer the question entirely (or come close), but if you're only working with CGAffineTransforms you can use CGAffineTransformConcat() to combine multiple transforms.

    This will work just fine when some transforms are animated and others are not, as long as you concat the transformations properly. I don't know how this works when you're also doing layer transforms.

提交回复
热议问题