myLayer = Īnimating it is done by simply chaining the frame (not the path) - (void)adjustSelectorToPosAndSize:(float)posX andWidth:(float)width Why not simply use a CALayer with the cornerRadius properly set?Īnimating the frame with cornerRadius set will work fine. ShapeRect = CGRectMake(0.0f, 0.0f, width, 200.0f) ĭoing this with a CAShapeLayer seems overly complicated to me if you are only using it for a rounded rectangle. Path = Īnd when I start the animation: - (void)adjustSelectorToPosAndSize:(float)posX andWidth:(float)width I am trying to animate the width of a rounded rectangle, the problem is when going from bigger width to thinner width, the animation does an "aberration ease jump".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |