All the animations mean change of layer.transform
or frame
properties. There are 2 main questions about performance:
I have multiple views which I should animate simultaneously. What is better: to create multiple
animateWithDuration
blocks or to create one such block and iterate views in it?My animation requires complex calculations and I need to call
animateWithDuration
enough often. Should I perform all the calculations before the animation block or is there no difference for performance?