Initializer

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 Core Location).

Return Value

A newly initialized workout route builder.