NACCWidgetIntent
struct NACCWidgetIntent : WidgetConfigurationIntent
This controls the intent for the settings screen.
-
The title of the widget, displayed over the settings screen.
Declaration
Swift
static var title: LocalizedStringResource
-
The subheading, displayed under the title, in the settings screen.
Declaration
Swift
static var description: IntentDescription
-
A simple switch. If on (default is off), then no image is shown; only the text report. This applies to both family variants.
Declaration
Swift
@IntentParameter var onlyText: Bool? { get nonmutating set }
-
A simple switch. If on (default is off), then medallions will not be displayed, for cleantime over a year. Ignored, if
onlyText
is true.Declaration
Swift
@IntentParameter var forceKeytag: Bool? { get nonmutating set }
-
A simple switch. If on (default is off), then the yellow background gradient will not be shown.
Declaration
Swift
@IntentParameter var dontShowYellowBackground: Bool? { get nonmutating set }
-
Parameterized initializer.
Declaration
Swift
init(forceKeytag inForceKeytag: Bool, onlyText inOnlyText: Bool, dontShowYellowBackground inDontShowYellowBackground: Bool )
Parameters
forceKeytag
If true, then medallions will not be displayed.
onlyText
If true, then no image is shown; only the text report.
dontShowYellowBackground
If true, then the yellow gradient background will NOT be shown.
-
Default initializer.
Declaration
Swift
init()