AppIntents default value

Hi,

I have created an AppIntent in which there is a parameter called price, I have set the default value as 0.

    @Parameter(title: "Price", default: 0)
    var price: Int

Problem

  • When the shortcut is run this parameter is skipped

Aim

  • I still want to price to be asked however it needs to be pre-filled with 0

Question

  • What should I do that the shortcut can still ask the price but be pre-filled with 0?
AppIntents default value
 
 
Q