Reputation: 381
I have created a macro like below
@MyMacro(true)
struct X {
}
should expand like
@available(*,deprecated)
struct X {
}
Here i am passsing a boolean flag, according to that flag @available attribute should show/hide.How can i implement this functionality by uisng AttachedMacro.
Upvotes: 0
Views: 58