Shape
ScriptWidget template.
Example
//
// ScriptWidget
// https://xnu.app/scriptwidget
//
// Shape Template
//
// Description: Shape Example
//
$render(
<vstack frame="max" animation="clockCustom,20">
<rect frame="20,60" color="blue" corner="5"></rect>
<rect frame="20,60" color="red" corner="5"></rect>
</vstack>
);
Templates live in
Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/ and can be imported directly into the app.