Skip to content

Conversation

@V3RON
Copy link
Contributor

@V3RON V3RON commented Jan 16, 2026

You can now schedule multiple widget states to display automatically at different times. This is perfect for weather forecasts, calendar events, or any app that needs content to change throughout the day - even when your app isn't running.

Instead of just updating a widget once, you can now batch-schedule multiple entries:

await scheduleWidget('weather', [
  { date: now, variants: { systemSmall: <MorningForecast /> } },
  { date: tomorrowMorning, variants: { systemSmall: <AfternoonForecast /> } },
  { date: tomorrowAfternoon, variants: { systemSmall: <EveningForecast /> } }
])

Additional Improvements

Automatic UserDefaults Cleanup:

  • Orphaned widget data is automatically removed on app launch (when widgets are deleted from home screen)
  • Expired timeline entries are automatically pruned when widgets refresh
  • Keeps App Group storage lean without manual intervention

Size Validation:

  • Warns if widget payloads exceed 50KB (helps prevent UserDefaults bloat)
  • Warns if timelines exceed 100KB
  • Non-breaking - logs warnings instead of throwing errors

@vercel
Copy link

vercel bot commented Jan 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
voltra Ready Ready Preview, Comment Jan 18, 2026 8:46pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants