1

Is it possible to chaining three CAtransform3D (rotate, scale, translate) in Swift?

I'm using CATransform3DConcat but it's only chaining 2 transforms

If yes, how i can do it? If no, is there any "cheats" to do it?

Thank you

rmaddy
  • 314,917
  • 42
  • 532
  • 579
hermeneutic
  • 45
  • 2
  • 9

1 Answers1

2

Assuming your transforms are called t1, t2 and t3. Then do this:

let t = CATransform3DConcat(t1, CATransform3DConcat(t2, t3))
return true
  • 7,839
  • 2
  • 19
  • 35