Contents

earliestPermittedSampleDate()

Returns the earliest date permitted for samples.

Declaration

func earliestPermittedSampleDate() -> Date

Mentioned in

Return Value

The earliest date that samples can use. You cannot save or query samples prior to this date.

Discussion

Attempts to save samples earlier than this date fail with an HKError.Code.errorInvalidArgument error. Attempts to query samples before this date return samples after this date.

See Also

Working with HealthKit objects