ssly
(Fangchang)
1
Can DeclarationMacro accomplish this?
ApolloZhu
(Apollo/朱智语)
2
Hi! Depending on what you mean by based on existing types, this sounds like either a freestanding declaration macro or an attached peer macro. You can learn more about writing macros by watching WWDC videos:
or reading the SwiftUI Evolution Proposals:
ssly
(Fangchang)
4
Peer macros can solve my problem 
1 Like