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

Support new_as_child and set_bounds on iOS / Android #1136

Open
lucasmerlin opened this issue Jan 5, 2024 · 3 comments
Open

Support new_as_child and set_bounds on iOS / Android #1136

lucasmerlin opened this issue Jan 5, 2024 · 3 comments

Comments

@lucasmerlin
Copy link

I'd like to use egui_wry in my egui app but for that I'd need support for new_as_child on iOS and Android, so I can use set_bounds to integrate the webview with the egui ui.

@amrbashir
Copy link
Member

Unfortunately this is not supported since egui runs in a NativeActivity where the webview on Android requires AppCompatActivity

@amrbashir amrbashir closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2024
@amrbashir amrbashir reopened this Jan 8, 2024
@lucasmerlin
Copy link
Author

I'm using egui with GameActivity which is based on AppCombatActivity so I think this should not be a problem. And egui was only an example usecase, I'm sure new_as_child and set_bounds could be useful for things not related to egui.

The bigger question is whether it is possible to implement this or if there is some kind of limitation with iOS and android that makes this impossible.

@amrbashir
Copy link
Member

I'm using egui with GameActivity which is based on AppCombatActivity

Nice, didn't know that.

Anyways, we didn't spend time researching it but it should be possible given that android has layouts to support laying widgets on top of each other.

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

No branches or pull requests

2 participants