Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File presentation is broken on iPadOS #6487

Open
frenzibyte opened this issue Jan 4, 2025 · 1 comment
Open

File presentation is broken on iPadOS #6487

frenzibyte opened this issue Jan 4, 2025 · 1 comment
Assignees

Comments

@frenzibyte
Copy link
Member

https://discord.com/channels/188630481301012481/589331078574112768/1324993341309452371

@frenzibyte frenzibyte self-assigned this Jan 4, 2025
@frenzibyte
Copy link
Member Author

@peppy fixing this one is going to be complicated. iPadOS shows file presentation dialog in a popover-like structure, and the rectangle gameView.Bounds specified in

return documentInteraction.PresentOptionsMenu(gameView.Bounds, gameView, true);

represents a rectangle for which the popover should be pointing at, and since I'm choosing the entire game's bounds as the rectangle, the popover appears outside the game and cannot be seen basically.

A simple fix would be to throw an arbitrary rectangle that makes the popover appears on one of the corners of the game, i.e. CGRect.Empty, which displays the popover in the top-left corner:

Image

We can also make this more robust by receiving the rectangle of the "export" game notification and make the popover point from it, if that sounds good (will require changes to make the notification not dismiss as well, otherwise it'll look weird).

Waiting on your call before proceeding with a fix.

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

No branches or pull requests

1 participant