Populating payloads of enum instances? #39
-
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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Answer here: https://forums.swift.org/t/populating-accessing-the-payload-of-an-enum-case-at-runtime/47921/2 |
Beta Was this translation helpful? Give feedback.
Answer here: https://forums.swift.org/t/populating-accessing-the-payload-of-an-enum-case-at-runtime/47921/2