NACCWatchAppContentView
@MainActor
struct NACCWatchAppContentView : View
The main app content container view.
-
_renderAssets(for:Asynchronous) This is a thread-safe image renderer for the keytags
Declaration
Swift
@MainActor private static func _renderAssets(for inDate: Date) async -> UIImage?Parameters
inDateThe new date that requires an update.
-
Task used to render keytags in a separate thread.
Declaration
Swift
@MainActor private static var _syncTask: Task<Void, Never>? -
Tracks scene activity.
Declaration
Swift
@Environment @MainActor private var _scenePhase: ScenePhase { get } -
An instance of the observable model class.
Declaration
Swift
@Binding @MainActor var model: WatchModel { get nonmutating set } -
The image that represents the keytag chain. May be nil.
Declaration
Swift
@Binding @MainActor var keytagChain: UIImage? { get nonmutating set } -
The image that represents a medallion. May be nil.
Declaration
Swift
@Binding @MainActor var singleMedallion: UIImage? { get nonmutating set } -
The text report.
Declaration
Swift
@Binding @MainActor var text: String { get nonmutating set } -
This is a binding for a “trigger,” that determines whether or not the set cleandate picker is to be shown.
Declaration
Swift
@Binding @MainActor var showCleanDatePicker: Bool { get nonmutating set } -
This is a binding for a “trigger,” that tells the screen to update to the latest values.
Declaration
Swift
@Binding @MainActor var syncUp: Bool { get nonmutating set } -
The cleandate.
Declaration
Swift
@Binding @MainActor var cleanDate: Date { get nonmutating set } -
The displayed tab.
Declaration
Swift
@Binding @MainActor var watchFormat: Int { get nonmutating set } -
This makes sure that the screen reflects the current state.
Declaration
Swift
@MainActor private func _synchronize() -
The main view. It’s a swiped-tab view (page selector), with text, keytag, and medallion as choices. The choice is saved persistently. The user can double-tap on it, to change the cleandate.
Declaration
Swift
@MainActor var body: some View { get }
View on GitHub