Skip to content

Commit

Permalink
uikit: Patched to compile on older iOS SDKs.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 8, 2020
1 parent 93a2c58 commit de6d0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/uikit/SDL_uikitview.m
Expand Up @@ -69,7 +69,7 @@ - (instancetype)initWithFrame:(CGRect)frame
UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeGesture:)];
swipeRight.direction = UISwipeGestureRecognizerDirectionRight;
[self addGestureRecognizer:swipeRight];
#else
#elif defined(__IPHONE_13_4)
if (@available(iOS 13.4, *)) {
UIPanGestureRecognizer *mouseWheelRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(mouseWheelGesture:)];
mouseWheelRecognizer.allowedScrollTypesMask = UIScrollTypeMaskDiscrete;
Expand Down

0 comments on commit de6d0ac

Please sign in to comment.