YHVelocityProxy.h 708 Bytes
//
//  YHVelocityProxy.h
//  YHAnimationDemo
//
//  Created by gaoqiang xu on 2/11/15.
//  Copyright (c) 2015 gaoqiang. All rights reserved.
//

#import "YHProxy.h"
#import "YHShorthand.h"

/**
 *  速度代理类
 *  用在减速动画
 */
@interface YHVelocityProxy : YHProxy

@property (copy, nonatomic) id velocity;

@end

@interface NSObject (YHVelocityProxy)

- (instancetype)pop_velocity;
- (void)setPop_velocity:(id)velocity;

@end

#ifdef YHANIMATE_SHORTHAND

@interface NSObject (YHVelocityProxy_DropPrefix)

- (instancetype)velocity;

@end

@implementation NSObject (YHVelocityProxy_DropPrefix)

YHSHORTHAND_GETTER(velocity, instancetype)
YHSHORTHAND_SETTER(Velocity, velocity, id)

@end

#endif