NACC_IntentProvider
struct NACC_IntentProvider : AppIntentTimelineProvider
This describes the intent, used to build and read the “Edit Widget” screen.
-
This is the entry instance for this provider.
Declaration
Swift
typealias Entry = NACC_Entry
-
This is the intent that controls the settings scren.
Declaration
Swift
typealias Intent = NACCWidgetIntent
-
This is a simple placeholder view.
Declaration
Swift
func placeholder(in context: Context) -> NACC_Entry
-
snapshot(for:
Asynchronousin: ) This is a somewhat more involved view. We use “live data” to build it.
Declaration
Swift
func snapshot(for inConfiguration: NACCWidgetIntent, in: Context) async -> NACC_Entry
-
timeline(for:
Asynchronousin: ) This is the final rendereing view. We make sure to flush the shared prefs cache, before creating.
Declaration
Swift
func timeline(for inConfiguration: NACCWidgetIntent, in: Context) async -> Timeline<NACC_Entry>