summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLPinchGesture.h
blob: 69ffec09a7cbfb96d51198645c04fd6532e7ae4f (plain)
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
//
//  SDLPinchGesture.h
//  SmartDeviceLink-iOS
//
//  Created by Muller, Alexander (A.) on 6/14/16.
//  Copyright © 2016 smartdevicelink. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "SDLTouch.h"

NS_ASSUME_NONNULL_BEGIN

@interface SDLPinchGesture : NSObject

- (instancetype)initWithFirstTouch:(SDLTouch*)firstTouch secondTouch:(SDLTouch*)secondTouch;

@property (nonatomic, copy) SDLTouch* firstTouch;
@property (nonatomic, copy) SDLTouch* secondTouch;

@property (nonatomic, assign, readonly) CGFloat distance;
@property (nonatomic, assign, readonly) CGPoint center;
@property (nonatomic, assign, readonly) BOOL isValid;

@end

NS_ASSUME_NONNULL_END