SwiftinitHealthReportCoreUIHealthReportCoreUI.HealthDetailsQuestionViewModel

init

HealthReportCoreUI.HealthDetailsQuestionViewModel.__allocating_init(question: HealthReportCoreUI.HealthDetailsQuestion, detailsModel: HealthReportCoreUI.HealthDetailsModel, suggestedDetails: HealthReportCoreUI.HealthDetails, proceedActionTitle: Foundation.LocalizedStringResource, colorPalette: HealthDomainsUI.ColorPalette, healthStore: HKHealthStore?, requiresAnswerToProceed: Bool, progress: Double?, proceedActionHandler: @MainActor @Sendable () -> ()) -> HealthReportCoreUI.HealthDetailsQuestionViewModel

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

param{}

  1. 0question:
  2. 1detailsModel:
  3. 2suggestedDetails:
  4. 3proceedActionTitle:
  5. 4colorPalette:
  6. 5healthStore:
  7. 6requiresAnswerToProceed:
  8. 7progress:
  9. 8proceedActionHandler:
    function@MainActor @Sendable () -> ()sendableescaping