ScriptWidget
APIComponentsTemplates
Templates
ImageDatetime CurrentNyan CatAn Empty WidgetShapeText Today WeekBattery & BrightnessDaily QuoteOpen LinkStorage RingImage No MarginSystem InsightsText Year Days LeftAnimation ClockCondition ContentGitHub Repo StatsCurrency PulseImage Basic UsageLive Activity DemoCrypto Price TickerDatetime TimezoneGauge BatteryText Days To End Of MonthText Days to End Of YearWeatherDevice Battery PercentHabit Streak TrackerFocus CountdownWeather DisplayCheck Is Friday TodayCheck Is Working Day TodayLocation SnapshotStock SnapshotSunrise & SunsetMeeting CountdownAir Quality NowLocal Weather (Location)Location CompassHealth Steps RingSystem Status PanelWeather Now (Open-Meteo)Animation AquariumNew Episode TrackerCountdownLunar Date

An Empty Widget

ScriptWidget template.

Example

// 
// ScriptWidget 
// https://xnu.app/scriptwidget
// 
// Empty Template
// 
// Description: Empty script for starter
// 

var text = "Hello ScriptWidget :)";

$render(
  <vstack>
    <text font="caption">{text}</text>
  </vstack>
);
Templates live in Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/ and can be imported directly into the app.