YHVelocityProxy.h
708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// 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