Getting Started with WidgetKit by Sagun Raj Lage & Prakshapan Shrestha

Getting Started with WidgetKit by Sagun Raj Lage & Prakshapan Shrestha

Author:Sagun Raj Lage & Prakshapan Shrestha
Language: eng
Format: epub
ISBN: 9781484270424
Publisher: Apress


let entry = WidgetEvent(date: currentDate, events: widgetData)

Listing 4-8The line in getTimeline(for:in:completion:) that creates a WidgetEvent timeline entry

Listing 4-8 shows the line of code in getTimeline(for:in:completion:) that creates a WidgetEvent timeline entry and stores it into entry. Now, replace that line with the line given in Listing 4-9. let entry = WidgetEvent(date: currentDate, events: widgetData, category: configuration.categories)

Listing 4-9Creation of a WidgetEvent timeline entry that takes the category as an argument



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.