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

Render to views on Android/iOS #28

Open
maxammann opened this issue Apr 23, 2022 · 1 comment
Open

Render to views on Android/iOS #28

maxammann opened this issue Apr 23, 2022 · 1 comment
Labels
android Should be done by Android experts feature-request Request for a new feature ios/macos Should be done by Apple experts

Comments

@maxammann
Copy link
Collaborator

maxammann commented Apr 23, 2022

At some point we want to render to specific android and ios views and not to the whole screen. This is currently unsupported by winit.

Sadly it is not enough to render to a surface provided by the NDK/UIKit/AppKit. We also need to hook into the input handlers of iOS and Android. Maybe we should think about removing the complete winit dependency and handle all gestures in the corresponding SDKs and control the maplibre view from there. This means that the input handlers would be written in Swift/Kotlin/JavaScript instead of Rust.

iOS:

Difficult because winit is bound to the main UIApplicationView

Android:

Difficult because winit is bound to the main NativeActivity

Gestures

@maxammann maxammann added the feature-request Request for a new feature label Apr 26, 2022
@maxammann maxammann added ios/macos Should be done by Apple experts android Should be done by Android experts labels May 1, 2022
@maxammann
Copy link
Collaborator Author

Take a look at #91 when thinking about adding gesture/input handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Should be done by Android experts feature-request Request for a new feature ios/macos Should be done by Apple experts
Projects
None yet
Development

No branches or pull requests

1 participant