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

[swift2objc] Filtering #1394

Open
liamappelbe opened this issue Aug 6, 2024 · 1 comment
Open

[swift2objc] Filtering #1394

liamappelbe opened this issue Aug 6, 2024 · 1 comment

Comments

@liamappelbe
Copy link
Contributor

Like ffigen, swift2objc should have config options that let the user choose which APIs they want to generate wrappers for. Real Apple APIs have so many classes and methods that it's not practical to generate everything.

The Config should have callbacks that the user can set which return whether a particular class/struct/method/property should be generated. By default we should exclude everything.

@liamappelbe
Copy link
Contributor Author

liamappelbe commented Aug 6, 2024

It'd be nice if we can do #1358 first and then implement filtering as a transformer

My experience from ffigen is that using transformers for this is more trouble than it's worth. Better to just parse everything into a flat list of all bindings, then do a pass over that list applying the filter.

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

No branches or pull requests

1 participant