Is there a road map or expansion planned for the Mirror api?

Like the title states, I'm wondering if any discussion around swift's reflection capabilities has already been had. Right now there really isn't support for top level mutability using the api but is this something that can be subject to change or is there an adamant stance in place already?

5 Likes

I’ve wanted an expanded reflection for Swift for a while now. So much so, that I read the C++ source code of the swift runtime, inspected its ABI and made a custom reflection library that provides reflection information that is impossible to get with the current Mirror API. It is tested against Swift 5.4 and Swift 5.5. I plan to add some more conveniences to it (like resolving a field offset into an inout value taking closure).

GitHub: gor-gyolchanyan-swift/introspection-kit

3 Likes

You might want to check out these projects:

2 Likes