Contents

biologicalSex()

Reads someone’s biological sex from the HealthKit store.

Declaration

func biologicalSex() throws -> HKBiologicalSexObject

Mentioned in

Return Value

An object containing information about someone’s biological sex.

Discussion

For a list of possible values, see HKBiologicalSex.

If a person hasn’t set their biological sex or if they’ve denied permission to read the biological sex, this method returns an HKBiologicalSex.notSet value.

Topics

Possible Values

See Also

Reading characteristic data