WidgetExamples icon indicating copy to clipboard operation
WidgetExamples copied to clipboard

A demo project showing different types of Widgets created with SwiftUI and WidgetKit.

Results 8 WidgetExamples issues
Sort by recently updated
recently updated
newest added

Your example is great, but the URLImageView example can add an image cache, so if it's the same URL, it doesn't load the network

你好。这是iOS17的小组件时间线接口,我需要先显示正在加载页面,然后网络请求后,显示成功页面,.但是发现只显示了正在加载页面,而不会再次刷新进入成功页面。如何做到我想要的效果,感谢!!! func timeline(for configuration: EmergencyAlarmWidgetIntent, in context: Context) async -> Timeline { //通过设置枚举来区分页面 switch AlarmIntentType.type { case .ringingAlarm, //正在报警 // 这里是异步的网络请求代码 soundAlarm(context: context) { result in //修改状态,显示成功页面 AlarmIntentType.type = .alarmSuccess...

TimelineProvider.getTimeline对更新频率,entries数组的长度都有显示。 请问:如何每秒更新时间呢? 非常感谢🙏

In xcode 14, when create widget, I can use IntentHandler to custom search collection, but for AppIntentTimelineProvider I can't find the relevant documentation, can you give me some idea?

Basically, need to manage widget based on silent push-notification, please share your review @pawello2222

in my case for countdown widget, when I declare a **for-loop with 60 * 24 second times**, the widget will not render on the real device, it shows me a...

Hey @pawello2222 Thanks for this amazing repo! It helps a lot. Currently, I'm trying to implement ability of control music in my main app from widget. So far I found...