Instance Method


Reads the user’s Fitzpatrick Skin Type from the HealthKit store.


func fitzpatrickSkinType() throws -> HKFitzpatrickSkinTypeObject



On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing information about the error. Specify nil for this parameter if you do not want to receive error information.

Return Value

A skin type object representing the skin type selected by the user.


If the user has not yet specified a skin type, or if the user has denied your app permission to read the skin type, this method returns HKFitzpatrickSkinType.notSet.


Possible Values

class HKFitzpatrickSkinTypeObject

This class acts as a wrapper for the HKFitzpatrickSkinType enumeration.

enum HKFitzpatrickSkinType

Categories representing the user’s skin type based on the Fitzpatrick scale.

See Also

Reading Characteristic Data

func biologicalSex() -> HKBiologicalSexObject

Reads the user’s biological sex from the HealthKit store.

func bloodType() -> HKBloodTypeObject

Reads the user’s blood type from the HealthKit store.

func dateOfBirth() -> Date

Reads the user’s date of birth from the HealthKit store.

func dateOfBirthComponents() -> DateComponents

Reads the user’s date of birth from the HealthKit store.

func wheelchairUse() -> HKWheelchairUseObject

Reads the user’s wheelchair use from the HealthKit store.