Skip to content

Instantly share code, notes, and snippets.

@adilo
adilo / ClosureBasedCAAnimationDelegate.swift
Last active December 27, 2016 10:13
CALayer extension for using blocks instead of animation delegates
//
// CALayerExtensions.swift
//
import QuartzCore
internal typealias LayerAnimationBeginClosure = (CAAnimation) -> Void
internal typealias LayerAnimationCompletionClosure = (CAAnimation, Bool) -> Void
// MARK: LayerAnimationDelegate Class -
'''
Created on 16 sept. 2013
@author: Adil OURIDA.
@contact: adilourida@gmail.com
===========
Algorithm :
===========