Skip to content

iOS: Fix SDL_EVENT_DROP_FILE lost on cold start from URL open#15281

Open
jsm174 wants to merge 1 commit intolibsdl-org:mainfrom
jsm174:main
Open

iOS: Fix SDL_EVENT_DROP_FILE lost on cold start from URL open#15281
jsm174 wants to merge 1 commit intolibsdl-org:mainfrom
jsm174:main

Conversation

@jsm174
Copy link
Copy Markdown

@jsm174 jsm174 commented Mar 28, 2026

Description

The Visual Pinball iOS app uses SDL main callbacks and a SwiftUI front end.

We use SDL_EVENT_DROP_FILE because SwiftUI's onopenurl does not work when added to the SDL_uikitviewcontroller via a UIHostingController.

When the app is launched from a cold start, the event system isn't initialized, so the event gets dropped.

This PR fixes this by queueing up launch urls and then firing in postFinishLaunch.

Existing Issue(s)

#15093

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant