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

Investigate providing a way for users to wrap custom native views #17

Open
fwcd opened this issue Sep 4, 2024 · 0 comments
Open

Investigate providing a way for users to wrap custom native views #17

fwcd opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request views Related to the Nuit-provided views

Comments

@fwcd
Copy link
Owner

fwcd commented Sep 4, 2024

We could e.g. have nodes that represent opaque pointers to native views (can we safely convert them to integers, serialize them as JSON and convert them back? Otherwise we may have to pass them through FFI via a separate parameter and use a custom indexing to reference them in the node tree.).

Aside from the question of representation, we would have to design a nice API around it, ideally letting users provide different views for different backends. Perhaps conditional compilation against nuit's features could work (not sure if downstream library consumers can check for dependency features), but we would still want to handle the case where nuit was e.g. built with multiple backends correctly. That is, the user's app should support native views for every enabled backend.

@fwcd fwcd added enhancement New feature or request views Related to the Nuit-provided views labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request views Related to the Nuit-provided views
Projects
None yet
Development

No branches or pull requests

1 participant