How to get the UIViewController associated with SDL window?

On iOS, how does one get access to the UIViewController associated with the window?

Specifically, in SDL_uikitwindow.h, there is this structure:

struct SDL_WindowData
{
UIWindow *uiwindow;
SDL_uikitopenglview *view;
SDL_uikitviewcontroller *viewcontroller;
};

I want access to the “viewcontroller” variable from my code. Do I need to modify the library directly to do this, or is there a way already built in? (i.e. would SDL_GetWindowData do this?)