Latest 1.0.0
License MIT
Platforms ios 5.0, requires ARC

GSAnimationBlockDelegate is a lightweight library that enable the use of block instead of delegate method
with CAAnimation

The blockOnAnimationSucceeded block is called instead of

- (void) animationDidStart:(CAAnimation *)theAnimation

and the blockOnAnimationSucceeded or blockOnAnimationFailed blocks are called instead of

- (void) animationDidStop:(CAAnimation *)theAnimation

depending on the flag value

It is licensed under the MIT License.


CAAnimation *animation = /* an animation */

GSAnimationBlockDelegate *delegate = [[GSAnimationBlockDelegate alloc] init];
delegate.blockOnAnimationSucceeded = ^{


Latest podspec

    "name": "GSAnimationBlockDelegate",
    "version": "1.0.0",
    "summary": "A lightweight class that supports block callbacks instead of CAAnimation delegates.",
    "description": "  GSAnimationBlockDelegate offers 3 different blocks :n  blockOnAnimationStarted when the animation startsn  blockOnAnimationSucceeded when the animation succeedsn  and blockOnAnimationFailed when the animation fails.n",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    "authors": "Martin Moizard",
    "source": {
        "git": "",
        "tag": "1.0.0"
    "platforms": {
        "ios": "5.0"
    "source_files": "GSAnimationBlockDelegate/Library",
    "requires_arc": true

Pin It on Pinterest

Share This