2
時のタッチを検出CAShapeLayerは、私はこのようなCAShapeLayer(touchesEnded)のタッチを検出することができ、アニメーションスウィフト
let newShapePath = UIBezierPath(arcCenter: toPoint, radius: 20, startAngle: CGFloat(0), endAngle: CGFloat(M_PI * 2), clockwise: true).CGPath
// animate the `path`
let animation = CABasicAnimation(keyPath: "path")
animation.toValue = newShapePath
animation.duration = CFTimeInterval(duration)
animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseIn)
animation.fillMode = kCAFillModeBoth
animation.removedOnCompletion = false
shape.addAnimation(animation, forKey: animation.keyPath)
しかし、アニメーションが行われている間、CAShapeLayerでタッチが検出されません。パスをアニメートしながらCAShapeLayerのタッチを検出することは可能ですか?