RiValT_Watch_App_MainContentView

@MainActor
struct RiValT_Watch_App_MainContentView : View

The active countdown, connection status, and device controls for the Watch app.

  • The panels that can be presented over the Watch countdown.

    See more

    Declaration

    Swift

    private enum Sheet : Int, Identifiable
  • The scene activity used to start and stop interactive requests.

    Declaration

    Swift

    @Environment
    @MainActor
    private var scenePhase: ScenePhase { get }
  • The model that supplies live timer state and dispatches actions to the selected host.

    Declaration

    Swift

    @StateObject
    @MainActor
    private var model: RiValT_ObservableModel { get }
  • The Bluetooth device selection and pairing status observed by the view.

    Declaration

    Swift

    @ObservedObject
    @MainActor
    private var bluetooth: RiValT_BluetoothRemote { get set }
  • The currently presented Watch panel.

    Declaration

    Swift

    @MainActor
    private var sheet: Sheet? { get nonmutating set }
  • Whether to display the command rejection alert.

    Declaration

    Swift

    @MainActor
    private var showRejectedCommand: Bool { get nonmutating set }
  • Declaration

    Swift

    @MainActor
    var body: some View { get }
  • Refreshes a running readout on the host-aligned second boundaries.

    Declaration

    Swift

    @ViewBuilder
    @MainActor
    private func timerView(_ snapshot: Snapshot) -> some View
  • Renders the displayed countdown and its controls, and polls the host again after expiry.

    Declaration

    Swift

    @MainActor
    private func readout(_ snapshot: Snapshot, at date: Date) -> some View
  • Formats remaining seconds for the Watch readout, including an hours field when needed.

    Declaration

    Swift

    @MainActor
    private static func clockText(_ seconds: Int) -> String
  • The displayed name of the selected iPad or paired iPhone.

    Declaration

    Swift

    @MainActor
    private var hostName: String { get }
  • Shows connection or timer setup instructions and actions when no live countdown is available.

    Declaration

    Swift

    @MainActor
    private var connectionView: some View { get }
  • Opens device discovery when no iPad is selected or retries the current host.

    Declaration

    Swift

    @MainActor
    private func reconnect()