I'm building an today extension (widget) in iOS and was hoping it would be possible to add some subtle animations. Specifically i'm trying to transition a text label when the text changes.
My code works as expected in a regular app, but not in the widget. The text changes, but there is no transition.
CATransition *animation = [CATransition animation];
animation.duration = 3.0;
animation.type = kCATransitionFade;
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
[self.heading.layer addAnimation:animation forKey: nil];
self.heading.text = @"Lorem ipsum dolor sit amet";
This snippet is run inside the viewDidAppear method