I have a CALayer circle that I would like to animate the transform. I want it to start off at 0 and then slowly get larger to its original size. Here is what I have:
expandingCircleLayer = CAShapeLayer()
let radius: CGFloat = (self.view?.bounds.width)! * 0.10
expandingCircleLayer!.path = UIBezierPath(roundedRect: CGRect(x: 0, y: 0, width: 2.0 * radius, height: 2.0 * radius) , cornerRadius: radius).CGPath
expandingCircleLayer!.fillColor = UIColor.redColor().CGColor
After the animation is completed, I would also like to run a block of code. I know this is possible with a SpriteNode, but I'm not too sure how to do it with a CALayer.
Please Help!