SwiftinitHealthReportCoreUIHealthReportCoreUI.LoadingStateView

init

HealthReportCoreUI.LoadingStateView.init< where C == HealthReportCoreUI.DefaultLoadingContent>(viewModel: any HealthReportCoreUI.LoadingStateViewModel<Self.LoadedData == A>, configuration: HealthReportCoreUI.LoadingStateView<A, B, HealthReportCoreUI.DefaultLoadingContent, D>.Configuration, loadedContent: (A) -> B, errorContent: (Error) -> D) -> HealthReportCoreUI.LoadingStateView<A, B, HealthReportCoreUI.DefaultLoadingContent, D>

Structure

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

generic{}

ABCD

req{}

param{}

  1. 0viewModel:
    existentialLoadingStateViewModel
  2. 1configuration:
  3. 2loadedContent:
    function(A) -> Bescaping
    • paramgenericParameterA
    • returnsgenericParameterB
  4. 3errorContent:
    function(Error) -> Descaping
    • paramexistentialError
    • returnsgenericParameterD

result{}