I perform custom drawing in my UIView subclass using:
- (void)drawRect:(CGRect)rect;
How can I enable implicit animation when the drawing changes?
I perform custom drawing in my UIView subclass using:
- (void)drawRect:(CGRect)rect;
How can I enable implicit animation when the drawing changes?
Copyright © 2021 Jogjafile Inc.
Since there were no other suggestions I went ahead with the layer delegate method. Perhaps that's the only option anyway.
So in MyView I created a new CALayer property:
And in MyViewController I implemented the delegate method that does the drawing:
Now when a certain property changes I update the layer from MyViewController, which implicitly does a cross fade animation.