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

how to get class/struct by name? #78

Open
uiiang opened this issue Dec 3, 2020 · 3 comments
Open

how to get class/struct by name? #78

uiiang opened this issue Dec 3, 2020 · 3 comments

Comments

@uiiang
Copy link

uiiang commented Dec 3, 2020

how to get class/struct by name string?

struct Person{}

let info = typeInfo(of:"Person")

@wickwirew
Copy link
Owner

Unfortunately this is not possible. If I recall correctly it may be possible to get the type/type info from the mangled name, but not just the name itself.

@edudnyk
Copy link

edudnyk commented Oct 3, 2021

@wickwirew Does the library support getting a type, and then type info by mangled name?

@wickwirew
Copy link
Owner

@edudnyk unfortunately it does not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants