Anyone manage to get custom enum parameters to work with AppIntents and widgets? Whenever I try to pass a value in, it seems it wants a generic “IntentParameter" instead of the actual value, which seems contrary to the WWDC videos just passing values. Am I doing something silly?
@christianselig I cannot find it in my project at the moment, but I am pretty sure I found this in the session video by @mgorbach from last year

@DavidHaydl @mgorbach I watched that (and this year's videos) and didn't really see anything about that mentioned in any of their code samples for AppIntents, see attached for instance

Heck even the Emoji Rangers sample project this year doesn't do it, same error if you manually try to pass EmojiRangerSelection(heroName:) into an app intent button

@christianselig @DavidHaydl create your own initializer and write it in the obvious way (just set the property) and things should work! We cannot yet synthesize the correct initializer.
@mgorbach @DavidHaydl Ah, any way you could make the error more straightforward then, or maybe document this somewhere? It honestly never occurred to me that that would be the solution
@christianselig @mgorbach @DavidHaydl 100% second documenting this somewhere. A reply on Mastodon (of all places) is such a bad spot for such a great bit of advice to live

@bonney @christianselig @mgorbach @DavidHaydl for anyone reading this that’s about to implement interactive widgets (app intent with parameter)

I did it in a live stream, from nothing to working code. This init thing is one of the many things I bring up 😄

https://www.youtube.com/live/c3fNhtTeZSM?si=xdJeBVYOem-HQ5qx

Interactive Widget that starts playing podcast

YouTube