Contents

init(named:loadingPolicy:)

Creates a reference component with a name and loading policy.

Declaration

init(named name: String, loadingPolicy: ReferenceComponent.LoadingPolicy = .onDemand)

Parameters

  • name:

    The name of the entity to load.

  • loadingPolicy:

    A loading policy indicating when the app loads the entity.

Discussion

Place references in the app’s main bundle.