Commit 5930fa6f by Daniel Dahan

development: only adding animation delegate for iOS 10

parent cb243a6b
......@@ -258,7 +258,9 @@ extension CALayer {
- Parameter animation: A CAAnimation instance.
*/
open func animate(animation: CAAnimation) {
animation.delegate = self
if #available(iOS 10, *) {
animation.delegate = self
}
if let a = animation as? CABasicAnimation {
a.fromValue = (nil == presentation() ? self : presentation()!).value(forKeyPath: a.keyPath!)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment