Skip to content

iOS/macOS: compile-verify + finish the Swift legs of the menu-cleanup PR #335

Closed

Description

@tanarchytan

Follow-up to the menu-cleanup PR (tanarchytan:menu-cleanup-pr; link added in a comment below). That PR's Swift legs were written on a Windows box with no Xcode, so app-target Swift got no compile (there is no CI for it), and one iOS-only duplicate was deliberately left out.

To do on a Mac:

  1. Compile-verify the PR's Swift changes (Strand macOS + NOOPiOS iOS):

    • Test Centre "Advanced" card removal, Strand/Screens/TestCentreView.swift
    • "Broadcast heart rate" to "Broadcast strap HR (Garmin/ANT)" rename, Strand/Screens/SettingsView.swift
    • "Only when worn" toggle + onlyWhenWornBinding removal, Strand/Screens/AutomationsView.swift
  2. Finish the one iOS-only dedup left out of the PR: remove SettingsView's "Scheduled debug export" card (a duplicate of the Test Centre section-3 export, same ScheduledDebugExport store). It has scattered state to unwind: @State debugExportOn / debugExportMinutes, .onAppear { ScheduledDebugExport.activateIfEnabled() }, .onChangeCompat(of: debugExportOn) { ScheduledDebugExport.setEnabled($0) }, the time-picker hook, and runNow. Needs a compile to do safely.

A separate, older iOS cleanup (legacy stress-nudge) is tracked at #330.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions