Structures
The following structures are available globally.
-
This is a general-purpose View that displays the background gradient, under the contained View.
See moreDeclaration
Swift
@MainActor struct AppBackground<Content> : View where Content : View
-
The main app wrapper.
See moreDeclaration
Swift
@main @MainActor struct NACC_App : App
-
The Information Screen View
See moreDeclaration
Swift
@MainActor struct NACC_InfoDisplayView : View
-
Simple wrapper around UIActivityViewController so we can use it from SwiftUI.
See moreDeclaration
Swift
@MainActor struct NACC_ActivityView : UIViewControllerRepresentable
-
Ugh. I hate using UIViewControllerRepresentable, but we need it for this.
This is how the Event editor is implemented.
See moreDeclaration
Swift
@MainActor struct NACC_EventEditView : UIViewControllerRepresentable
-
This is a view that we use to allow the user to select a new cleandate.
It shows a standard “graphical” date picker (calendar-style), along with a “DONE” button (dismisses the modal).
It shows a a “Today” button (sets the calendar to today), if the selected day is not today.
If the user has changed the date since invoking the screen, a “Reset” button also appears, allowing the user to discard any changes.
See moreDeclaration
Swift
@MainActor struct NACC_PickerPopoverContent : View
-
This ViewModifier will present a body containing our special DatePicker.
See moreDeclaration
Swift
@MainActor struct NACC_AdaptivePickerPresentation : ViewModifier
-
The initial app container View.
This is the principal view of the app. It is displayed upon startup.
It contains a textual report of the user’s set cleantime, and the user can tap the report to change their cleandate.
Below the report, is an image, showing the last keytag (for under a year), or medallion earned by the user, based on their cleandate.
At the top, is the app logo. Tapping on it (or the keytag/medallion logo) will show another screen, with images displaying multiple keytags or medalliuons.
See moreDeclaration
Swift
@MainActor struct NACC_MainContentView : View
-
The image results View.
See moreDeclaration
Swift
@MainActor struct NACC_ResultDisplayView : View
-
A reusable View that:
- Configures an
LGV_UICleantimeImageViewBasesubclass - Waits for it to render into a
UIImage - Shows a spinner until the image is ready
Declaration
Swift
@MainActor fileprivate struct NACC_CleantimeRenderedImageView : View - Configures an
-
Displays a horizontally-oriented array of earned keytags
See moreDeclaration
Swift
@MainActor fileprivate struct NACC_KeytagArrayTabView : View, NACC_TabViewProtocol
-
Displays a vertically-oriented strip of earned keytags
See moreDeclaration
Swift
@MainActor fileprivate struct NACC_KeytagStripTabView : View, NACC_TabViewProtocol
-
Displays a horizontally-oriented array of earned medallions
See moreDeclaration
Swift
@MainActor fileprivate struct NACC_MedallionTabView : View, NACC_TabViewProtocol
View on GitHub
Structures Reference