Help integrating iOS UIKit with SDL2

Experimenting with SDL2 and iOS…

I’ve managed to get an app to run by starting with a standard UIViewController with a button that creates an SDL window that mimics the rectangles code from the included iOS Demos.

I added a touch area at the top to quit the SDL part and return to my “menu” view controller.

Next step I need to accomplish is presenting a simple UIAlertController on-top-of the rectangles window.

I sort of managed to do that… the Alert controller view appears and the rectangles continue to run behind it. However, I cannot interact with the “OK” button in the Alert view.

I will eventually need to show other “popup” views with additional interaction, as well as overlay a camera view (for QRCode scanning). I think getting this first task working will go a long way.

Anybody have a simple example?