native icon indicating copy to clipboard operation
native copied to clipboard

[swift2objc] Filtering

Open liamappelbe opened this issue 1 year ago • 1 comments

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 avatar Aug 06 '24 01:08 liamappelbe

~~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.

liamappelbe avatar Aug 06 '24 01:08 liamappelbe

@liamappelbe Issue can be closed?

nikeokoronkwo avatar Dec 18 '24 16:12 nikeokoronkwo