From de6d0ac55a25a8e5c6ca031f8708abcf85665409 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 8 Nov 2020 18:11:42 -0500 Subject: [PATCH] uikit: Patched to compile on older iOS SDKs. --- src/video/uikit/SDL_uikitview.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/uikit/SDL_uikitview.m b/src/video/uikit/SDL_uikitview.m index 2057471ec..cb97aed81 100644 --- a/src/video/uikit/SDL_uikitview.m +++ b/src/video/uikit/SDL_uikitview.m @@ -69,7 +69,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick; 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;