NACCWidgetEntryView
@MainActor
struct NACCWidgetEntryView : View
This is the display for a single widget entry.
-
This is the entry instance that determines the widget display.
Declaration
Swift
@MainActor var entry: NACC_IntentProvider.Entry -
This is the display family variant for this entry panel.
Declaration
Swift
@Environment @MainActor private var _family: WidgetFamily { get } -
This is used to set the dynamic light mode/dark mode screen, if we are not displaying our yellow background.
Declaration
Swift
@Environment @MainActor private var _colorScheme: ColorScheme { get } -
If the family variant is
systemSmall, then we display one thing: either the text report, or a keytag/medallion.If the family variant is
systemMedium, then we display the text report on the left, and the keytag or medallion on the right.It is also possible to only display text, in
systemMedium.Declaration
Swift
@MainActor var body: some View { get }
View on GitHub