Something like objc_getClassList
but for structs.
Just to give some context: this method (for classes) is used in our unit tests to test that all classes with certain suffix have tests for them. We test the tests!
The Swift compiler mostly emits enough metadata to do this kind of reflection today but it isn't exposed. Full-fidelity reflection is on the "list of things we'd like to do" but has not yet been implemented.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With