Is it possible to propagate comments to autogenerated methods with @DependencyClient
?
#194
rudedogdhc
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Before
DependencyMacros
I would often design a dependency thus:With the addition of
DependencyClient
, the convenience method can be generated for me, so it's much easier to get mostly the same result simply withThe bad news is that I no longer have the documentation comment for the method. I could of course attach the documentation comment to the closure property, but that only helps callers who call the closure, not the people who call the auto-generated method.
I'm not even sure that this can be done, but is it possible to propagate the comments on the properties to these auto-generated methods? And even if it was possible, would Xcode even notice documentation comments inside macro expansions?
Beta Was this translation helpful? Give feedback.
All reactions