Update hashtag every 15 minutes (IOS-152)
This commit is contained in:
parent
f3becbec3f
commit
413a29208f
|
@ -16,7 +16,7 @@ struct HashtagWidgetProvider: IntentTimelineProvider {
|
|||
|
||||
func getTimeline(for configuration: HashtagIntent, in context: Context, completion: @escaping (Timeline<HashtagWidgetTimelineEntry>) -> Void) {
|
||||
loadMostRecentHashtag(for: configuration, in: context) { entry in
|
||||
completion(Timeline(entries: [entry], policy: .after(.now)))
|
||||
completion(Timeline(entries: [entry], policy: .after(.now.addingTimeInterval(60 * 15))))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue