samhuri.net-ios/Pods/PromiseKit/objc/CALayer+PromiseKit.h

38 lines
832 B
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// CALayer+PromiseKit.h
//
// Created by María Patricia Montalvo Dzib on 24/11/14.
// Copyright (c) 2014 Aluxoft SCP. All rights reserved.
//
#import <QuartzCore/QuartzCore.h>
#import <PromiseKit/fwd.h>
/**
To import the `CALayer` category:
pod "PromiseKit/CALayer"
Or you can import all categories on `QuartzCore`:
pod "PromiseKit/QuartzCore"
Or `CALayer` is one of the categories imported by the umbrella pod:
pod "PromiseKit"
*/
@interface CALayer (PromiseKit)
/**
Add the specified animation object to the layers render tree.
@return A promise that thens two parameters:
1. A boolean: `YES` if the animation progressed entirely to completion.
2. the `CAAnimation` object.
@see addAnimation:forKey
*/
-(PMKPromise *)promiseAnimation:(CAAnimation *)animation forKey:(NSString *)key;
@end