ソースを参照

Align Add Carbs shortcut's guardrails to meal settings' guardrails

Now aligns with Max Carb, Max Fat, Max Protein guardrails in Settings > Features > Meal Settings
Mike Plante 3 ヶ月 前
コミット
e76775449d
1 ファイル変更3 行追加3 行削除
  1. 3 3
      Trio/Sources/Shortcuts/Carbs/AddCarbPresetIntent.swift

+ 3 - 3
Trio/Sources/Shortcuts/Carbs/AddCarbPresetIntent.swift

@@ -14,7 +14,7 @@ struct AddCarbPresetIntent: AppIntent {
         title: "Quantity Carbs",
         description: "Quantity of carbs in g",
         controlStyle: .field,
-        inclusiveRange: (lowerBound: 0, upperBound: 200),
+        inclusiveRange: (lowerBound: 0, upperBound: 300),
         requestValueDialog: IntentDialog(stringLiteral: String(localized: "How many grams of carbs did you eat?"))
     ) var carbQuantity: Double?
 
@@ -22,7 +22,7 @@ struct AddCarbPresetIntent: AppIntent {
         title: "Quantity Fat",
         description: "Quantity of fat in g",
         default: 0.0,
-        inclusiveRange: (0, 200),
+        inclusiveRange: (0, 300),
         requestValueDialog: IntentDialog(stringLiteral: String(localized: "How many grams of fat did you eat?"))
     ) var fatQuantity: Double
 
@@ -30,7 +30,7 @@ struct AddCarbPresetIntent: AppIntent {
         title: "Quantity Protein",
         description: "Quantity of Protein in g",
         default: 0.0,
-        inclusiveRange: (0, 200),
+        inclusiveRange: (0, 300),
         requestValueDialog: IntentDialog(stringLiteral: String(localized: "How many grams of protein did you eat?"))
     ) var proteinQuantity: Double