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
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:
Android:
Gestures