Skip to content

Update a Canvas from Shortcuts

Use Shortcuts when a canvas should change based on data outside the Canvases editor. A shortcut can update a specific view by selecting a canvas, selecting a view ID, and setting the property you want to change.

The view ID connects Canvases and Shortcuts. In Canvases, you give a view an ID. In Shortcuts, you use that same ID with Update View.

For example, a water widget might show a water amount and a progress ring. If the label has the ID waterConsumed, Shortcuts can use Update View with waterConsumed to change only that label. Other views in the same canvas are left alone.

An ID connects a view in Canvases to the Update View action in Shortcuts. Give each view you plan to update its own ID.

  1. Open the canvas in Canvases.
  2. Select the view you want to update.
  3. Give it a stable ID in the inspector.
The ID field for a selected view in the Canvases inspector.
Give a view a stable ID in the inspector.

Use IDs that describe the purpose of the view, not its current value. For example, waterProgress, waterConsumed, and glassesToday are easier to understand later than names like text1 or blueLabel.

If a shortcut depends on an ID, keep that ID stable in Canvases. Changing the ID means the shortcut needs to be updated too.

Once your views have IDs, build the shortcut that updates them. The Update View action does the work: it points at a canvas, finds a view by its ID, and changes one property on it.

  1. Open Shortcuts and create a new shortcut.
  2. Add the Canvases action named Update View.
  3. Choose the canvas you want to update.
  4. Enter or select the view ID.
  5. Choose the property you want to change, such as Text or Progress.
  6. Fill in the new value for that property.
  7. Leave unrelated values blank so they stay unchanged.
  8. Run the shortcut and check the canvas.
Add Update View, then choose the canvas, view ID, and property to change.

Use this pattern for status labels, timestamps, counters, and summaries.

  1. In Canvases, select the text view that shows the amount.
  2. Set its ID to waterConsumed.
  3. In Shortcuts, add Update View.
  4. Choose the canvas.
  5. Set the view ID to waterConsumed.
  6. Set Property to Text.
  7. Set Text to the new amount, such as 1.5.
An Update View action changing the waterConsumed text view to 1.5.
Update the water amount with the Text property.

Use this pattern for goals, levels, completion states, and measurements.

  1. In Canvases, select the progress view.
  2. Set its ID to waterProgress.
  3. In Shortcuts, add Update View.
  4. Choose the canvas.
  5. Set the view ID to waterProgress.
  6. Set Property to Progress.
  7. Set Progress to a number from 0 to 100, such as 85.

Use the 0 to 100 range shown in the Canvases editor. Do not use a normalized value from 0 to 1. For example, use 60 for 60%, not 0.6.

An Update View action changing the waterProgress progress view to 85.
Update the water progress ring with the Progress property.

Update View changes one property on one view. If a shortcut needs to update several parts of a canvas, add one Update View action for each change.