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

Datetime Current

ScriptWidget template.

Example

// 
// ScriptWidget 
// https://xnu.app/scriptwidget
// 
// Clock Template
// 
// Description: Display Clock Time
// 

$render(
  <vstack background="yellow" frame="max,center">
    <date font="title" date="start of today" style="timer" alignment="center" />
  </vstack>
);
Templates live in Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/ and can be imported directly into the app.