Replies: 1 comment 1 reply
-
@AFutureD This unfortunately isn't possible with how macros work in Swift. Macros can only "see" code that they are attached to, so there's no way for the There is some talk about giving macros access to some parent scope info in the future, but it's not clear if it would help in this case. You may want to start a discussion on the Swift forums, or open a feature request if you'd like to see this ability in the language. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An
action
or any other enum should be independent, and the support for CasePath should be unrelated.CasePath can be supported through an extension.
Such as:
It may support things like this, or other ways.
Beta Was this translation helpful? Give feedback.
All reactions