Populating payloads of enum instances? #39
Answered
by
NSExceptional
NSExceptional
asked this question in
Q&A
|
Edit: looking at TypeLayout.rst tells me more about how enums are laid out by the compiler, but not how to fetch that layout for any given enum at runtime, such as for enums with multiple values in a single payload, or enums with more than one payload case. Edit 2: Runtime.md also looks promising |
Answered by
NSExceptional
May 5, 2021
Replies: 1 comment 2 replies
|
Answer here: https://forums.swift.org/t/populating-accessing-the-payload-of-an-enum-case-at-runtime/47921/2 |
2 replies
Answer selected by
NSExceptional
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Answer here: https://forums.swift.org/t/populating-accessing-the-payload-of-an-enum-case-at-runtime/47921/2