SDL: Fixed building with Xcode 15.4

From 504041a1ba5b08cc98668c6216440da3f636d539 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 3 Jan 2026 08:03:44 -0800
Subject: [PATCH] Fixed building with Xcode 15.4

Fixes https://github.com/libsdl-org/SDL/issues/14740
---
 docs/README-ios.md               | 2 +-
 src/video/uikit/SDL_uikitvideo.m | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/README-ios.md b/docs/README-ios.md
index 761fee5c79bc5..74f4ca6982d19 100644
--- a/docs/README-ios.md
+++ b/docs/README-ios.md
@@ -4,7 +4,7 @@ iOS
 Building the Simple DirectMedia Layer for iOS 11.0+
 ==============================================================================
 
-Please note that building SDL requires at least Xcode 16 and the iOS 18 SDK.
+Please note that building SDL requires at least Xcode 12.2 and the iOS 14.2 SDK.
 
 Instructions:
 
diff --git a/src/video/uikit/SDL_uikitvideo.m b/src/video/uikit/SDL_uikitvideo.m
index 0202a7582ec57..97aeb944314f9 100644
--- a/src/video/uikit/SDL_uikitvideo.m
+++ b/src/video/uikit/SDL_uikitvideo.m
@@ -310,7 +310,8 @@ void UIKit_SetGameControllerInteraction(bool enabled)
 
 void UIKit_SetViewGameControllerInteraction(UIView *view, bool enabled)
 {
-#ifndef SDL_PLATFORM_TVOS
+#if defined(SDL_PLATFORM_VISIONOS) || \
+       (defined(SDL_PLATFORM_IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000)
     if (@available(iOS 18.0, visionOS 2.0, *)) {
         if (enabled) {
             GCEventInteraction *interaction = [[GCEventInteraction alloc] init];