I want to access get the value of the transform scale at a point in time. Here is the animation creation :
CABasicAnimation *grow = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
grow.toValue = @1.5f;
grow.duration = 1;
grow.autoreverses = YES;
grow.repeatCount = HUGE_VALF;
[view.layer addAnimation:grow forKey:@"growAnimation"];
I'd like to get, for example when a user presses a button, the current size of the view. Logging the frame or the bounds always returns constant values. Any help would be much appreciated !