@apt,
the code of the animation is:
var f = self.frame.copy();
f.width += 20;
f.height += 20;
self.frame = f;
self.rotationAngle += 5;
where self
is the View1, because this code is written inside an event of the View1, even if the closure is added to an animate
method of the OvalShape1:
OvalShape1.animate(0.5, 0.2, 0, {
var f = self.frame.copy();
f.width += 20;
f.height += 20;
self.frame = f;
self.rotationAngle += 5;
}, null);
So the animation change the frame and the rotation angle of the View1 and the frame of its subviews (OvalShape1 and Label1) changes according to the Autosize constraints of each subview.