title: Swift - CABasicAnimation not working with CALayer
body: <p>Here is my code about add a layer with animation added.</p>
  
  <pre><code>let myLayer: CALayer = .init()
  let myAnimation: CABasicAnimation = .init(keyPath: "bounds.size.height")
  
  // for myLayer to center of superview
  let centerPoint: CGPoint = .init(x: mySuperview.bounds.width / 2, y: mySuperview.bounds.height / 2)
  
  myLayer.frame = CGRect(x: 0, y: 0, width: 20, height: 20)
  myLayer.anchorPoint = CGPoint(x: 0.5, y: 0.5)
  myLayer.position = centerPoint
  myLayer.backgroundColor = UIColor.red.cgColor
  
  myAnimation.fromValue = 20
  myAnimation.toValue = 100
  myAnimation.duration = 1
  myAnimation.beginTime = CACurrentMediaTime() + 1.0
  myAnimation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
  
  myLayer.add(myAnimation, forKey: "bounds.size.height")
  
  mySuperview.layer.addSublayer(myLayer)
  </code></pre>
  
  <p>and <code>myLayer</code> was appeared at correct position. but added animation isn't working.</p>
  
  <p>not only about <code>bounds.size.height</code>. <code>frame.size.height</code>, <code>transform</code>, <code>opacity</code>... I tried all of them but It isn't changing.</p>
  
  <p>I am confused because I have a recollection of working well easily by above code.</p>
  
  <p>Did I skip anything?</p>