Duration type parameter in AppIntent

I'm developing an AppIntent with a Duration parameter, the definition looks like this:

@Parameter(title: "Duration", description: "Time entry duration")
var duration: Measurement<UnitDuration>

When I run this AppIntent using Siri voice command (by a shortcut) the system asks for the duration value, however when I try to say "1 hour 10 minutes" the "hour" component is ignored, in the AppIntent's perform() method I see only the minutes set (so in this case only 10 minutes).

Is there any way to use the Duration type for this type of natural language input?

When I try to set only 10 minutues, or 1 hour separately it works, just the combination of these two fails.

Thank you

Do you get the same results with just the relevant code in a small test project? If so, please create a bug report with that test project attached so we can take a look. If you're not familiar with preparing a test project, take a look at Creating a test project. Once you have the bug report filed, please post the FB number here.

— Ed Ford,  DTS Engineer

I was able to reproduce it in a sample project. The FB number is FB17149864.

Thanks for the bug report! Could attach that test project to the report?

— Ed Ford,  DTS Engineer

Duration type parameter in AppIntent
 
 
Q