Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Fix pinch test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-guerra committed Sep 30, 2019
1 parent 172e4b1 commit 53eaf64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/ios/test/MGLMapViewPitchTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
#import <XCTest/XCTest.h>

@interface MockUIPanGestureRecognizer : UIPanGestureRecognizer
@property(nonatomic, readwrite) UIGestureRecognizerState state;
@property NSUInteger mbx_numberOfFingersForGesture;
@property CGPoint mbx_middlePoint;
@property CGPoint mbx_westPoint;
@property CGPoint mbx_eastPoint;
@end

@implementation MockUIPanGestureRecognizer

@synthesize state;

- (instancetype)initWithTarget:(id)target action:(SEL)action {
if (self = [super initWithTarget:target action:action]) {
self.mbx_numberOfFingersForGesture = 2;
Expand Down

0 comments on commit 53eaf64

Please sign in to comment.