Contents

init(healthStore:device:)

Creates and returns a new workout route builder.

Declaration

init(healthStore: HKHealthStore, device: HKDevice?)

Parameters

  • healthStore:

    The HealthKit store.

  • device:

    An object representing the device that provided the location data. Pass nil if the app is generating its own location data (for example, using Corelocation).

Return Value

A newly initialized workout route builder.

Discussion

Use of this initializer is discouraged. Use seriesBuilder(for:) instead.

See Also

Creating the builder