NACCWatchApp

@main
@MainActor
struct NACCWatchApp : App

This is the main app wrapper.

  • Tracks scene activity.

    Declaration

    Swift

    @Environment
    @MainActor
    private var _scenePhase: ScenePhase { get }
  • This handles the session delegate.

    Declaration

    Swift

    @State
    @MainActor
    private var _wcSessionDelegateHandler: NACCWatchAppContentViewWatchDelegate? { get nonmutating set }
  • The image that represents a keytag. May be nil.

    Declaration

    Swift

    @State
    @MainActor
    private var _singleKeytag: UIImage? { get nonmutating set }
  • The image that represents a medallion. May be nil.

    Declaration

    Swift

    @State
    @MainActor
    private var _singleMedallion: UIImage? { get nonmutating set }
  • This is a source for a “trigger,” that determines whether or not the set cleandate picker is to be shown.

    Declaration

    Swift

    @State
    @MainActor
    private 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

    @State
    @MainActor
    private var _syncUp: Bool { get nonmutating set }
  • The text report.

    Declaration

    Swift

    @State
    @MainActor
    private var _text: String { get nonmutating set }
  • The cleandate.

    Declaration

    Swift

    @State
    @MainActor
    private var _cleanDate: Date { get nonmutating set }
  • This is a local state that determines which screen is shown (0 is text, 1 is keytag, 2 is medallion).

    Declaration

    Swift

    @State
    @MainActor
    private var _watchFormat: Int { get nonmutating set }
  • This will update our internal state, to match the new application context that we received from the phone.

    Declaration

    Swift

    @MainActor
    func updateApplicationContext(_ inApplicationContext: [String : Any])

    Parameters

    inApplicationContext

    The new context dictionary.

  • We simply show the content view.

    Declaration

    Swift

    @MainActor
    var body: some Scene { get }