Skip to content

Instantly share code, notes, and snippets.

'''
Created on 16 sept. 2013
@author: Adil OURIDA.
@contact: [email protected]
===========
Algorithm :
===========
@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 -