Browse Source

uikit: Patched to compile on older iOS SDKs.

Ryan C. Gordon 4 years ago
parent
commit
de6d0ac55a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/uikit/SDL_uikitview.m

+ 1 - 1
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;