Type Method

loadBodyTrackedAsync(named:in:)

Loads a body-tracked entity from a file in a bundle asynchronously.

Declaration

static func loadBodyTrackedAsync(named name: String, in bundle: Bundle? = nil) -> LoadRequest<BodyTrackedEntity>

Parameters

name

The base name of the file to load, omitting the file extension.

bundle

The bundle containing the file. Use nil to search the app’s main bundle.

Return Value

A resource loader that publishes the root entity in the loaded file as a BodyTrackedEntity.

See Also

Loading a Flattened Body-Tracked Entity

static func loadBodyTracked(named: String, in: Bundle?) -> BodyTrackedEntity

Blocks your app while loading a body-tracked entity from a file in a bundle.

static func loadBodyTracked(contentsOf: URL, withName: String?) -> BodyTrackedEntity

Blocks your app while loading a body-tracked entity from a file URL.