David Smith on Nostr: In the hopes that it saves someone else some frustration…I just discovered you ...
In the hopes that it saves someone else some frustration…I just discovered you can't have an object in your project with the same name as one of the new Swift Macros. If you do you'll get the not super obvious error “No macro named X”.
I just ran into this because I had a view named "Preview" in my project which meant that if I tried to use any of the new #Preview options, my project wouldn't compile. Renaming my class completely fixed this.
That look longer than I'd like to admit to work out.
I just ran into this because I had a view named "Preview" in my project which meant that if I tried to use any of the new #Preview options, my project wouldn't compile. Renaming my class completely fixed this.
That look longer than I'd like to admit to work out.
![](https://files.mastodon.social/media_attachments/files/110/710/731/599/630/000/original/b09b9bce56a3e51e.png)