6161#include " ../../menu/menu_driver.h"
6262#endif
6363
64+ #ifdef HAVE_SWIFT
65+ #if TARGET_OS_TV
66+ #import " RetroArchTV-Swift.h"
67+ #else
68+ #import " RetroArch-Swift.h"
69+ #endif
70+ #endif
71+
6472#include " ../frontend_driver.h"
6573#include " ../../file_path_special.h"
6674#include " ../../configuration.h"
@@ -987,6 +995,15 @@ static bool frontend_darwin_accessibility_speak(int speed,
987995#endif
988996}
989997
998+ static void frontend_darwin_content_loaded (void )
999+ {
1000+ #ifdef HAVE_SWIFT
1001+ if (@available (iOS 16.0 , tvOS 16.0 , *)) {
1002+ [RetroArchAppShortcuts contentLoaded ];
1003+ }
1004+ #endif
1005+ }
1006+
9901007frontend_ctx_driver_t frontend_ctx_darwin = {
9911008 frontend_darwin_get_env, /* get_env */
9921009 NULL , /* init */
@@ -999,7 +1016,7 @@ static bool frontend_darwin_accessibility_speak(int speed,
9991016 frontend_darwin_get_name, /* get_name */
10001017 frontend_darwin_get_os, /* get_os */
10011018 frontend_darwin_get_rating, /* get_rating */
1002- NULL , /* content_loaded */
1019+ frontend_darwin_content_loaded, /* content_loaded */
10031020 frontend_darwin_get_arch, /* get_architecture */
10041021 frontend_darwin_get_powerstate, /* get_powerstate */
10051022 frontend_darwin_parse_drive_list,/* parse_drive_list */
0 commit comments