Hi!
So while Date is supported for @Parameter in an App Intent, I just discovered that Xcode will not let me use use it in a parametrized App Shortcut phrase.
In my case, I would like to give the option to say "today", tomorrow", or "day after tomorrow" for the date. Am I missing something? Any hints on the best way to approach this?
In my case, I would like to give the option to say "today", tomorrow", or "day after tomorrow" for the date.
Is date relativity always your expected use? These could become AppEnums
instead, and then you convert the relative value into a Date
when the intent runs. But if you also expect specific dates, that isn't possible with an App Shortcut, because the parameters in an App Shortcut invocation phrase can't be open ended — which is why the closed set nature of an AppEnum
is a good choice if you're only expecting relative date values.
—Ed Ford, DTS Engineer