biologicalSex()
Reads someone’s biological sex from the HealthKit store.
Declaration
func biologicalSex() throws -> HKBiologicalSexObjectMentioned 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.