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 -