Unable to set a default date for a App Intent Parameter

    @Parameter(title: "Date", default: Date.now)
    var date: Date

I get this error on the parameter line: No exact matches in call to initializer. I've tried writing it in different ways but I can't get it to work.

It works fine if I don't have a default value, however that would prompt for the date every time.

Unable to set a default date for a App Intent Parameter
 
 
Q