NACC_App

@main
@MainActor
struct NACC_App : App

The main app wrapper.

  • Scene phase, so we know when the app becomes active.

    Declaration

    Swift

    @Environment
    @MainActor
    private var scenePhase: ScenePhase { get }
  • The tab to be shown.

    Declaration

    Swift

    @State
    @MainActor
    private var _selectedTab: NACC_TabIndexes { get nonmutating set }
  • This contains the cleandate.

    Declaration

    Swift

    @State
    @MainActor
    private var _selectedDate: Date { get nonmutating set }
  • If true, then the NavigationStack will bring in the results screen.

    Declaration

    Swift

    @State
    @MainActor
    private var _showResult: Bool { get nonmutating set }
  • Flag indicating that the most recent activation came from a URL.

    Declaration

    Swift

    @State
    @MainActor
    private var _wasOpenedViaURL: Bool { get nonmutating set }
  • Handles opening the app through a URL or a URL scheme.

    Declaration

    Swift

    @MainActor
    func handleOpenWithURL(_ inURL: URL)

    Parameters

    inURL

    The URL query string (for both a Universal and a Deep link).

  • This is the main application window.

    Declaration

    Swift

    @MainActor
    var body: some Scene { get }