How to resolve the "Declaration name is not covered by macro" error
In XCode, open your Swift Macro and in the Macro definition, set the names to "arbitrary".

Written by Oscar de la Hera Gomez
First published on 08/16/2024 at 13:11
Last Updated on 08/16/2024 at 13:49

In XCode, open your Swift Macro and in the Macro definition, set the names to "arbitrary".
SubscribeDownload Open Source SwiftUI Starter Project
To resolve the error above, open the macro and navigate to the definition.

Replace names: named(init) with names: arbitrary.

This will resolve your issue.

Looking to learn more about SwiftUI, Swift, Design and Technology?
Search our blog to learn more about Swift, SwiftUI, design and technology.
Any Questions?
We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work