---
title: bloodType()
framework: healthkit
role: symbol
role_heading: Instance Method
path: healthkit/hkhealthstore/bloodtype()
---

# bloodType()

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

## Declaration

```swift
func bloodType() throws -> HKBloodTypeObject
```

## Mentioned in

About the HealthKit framework

## Return Value

Return Value A blood type object that contains information about the user’s blood type.

## Discussion

Discussion If the user has not specified a blood type or if the user has denied your app permission to read the blood type, this method returns an HKBloodType.notSet value. note: In Swift, this method returns a nonoptional result and is marked with the throws keyword to indicate that it throws an error in cases of failure. You call this method in a try expression and handle any errors in the catch clauses of a do statement, as described in Error Handling in The Swift Programming Language and About Imported Cocoa Error Parameters.

## Topics

### Possible Values

- [HKBloodTypeObject](healthkit/hkbloodtypeobject.md)
- [HKBloodType](healthkit/hkbloodtype.md)

## See Also

### Reading characteristic data

- [biologicalSex()](healthkit/hkhealthstore/biologicalsex().md)
- [dateOfBirth()](healthkit/hkhealthstore/dateofbirth().md)
- [dateOfBirthComponents()](healthkit/hkhealthstore/dateofbirthcomponents().md)
- [fitzpatrickSkinType()](healthkit/hkhealthstore/fitzpatrickskintype().md)
- [wheelchairUse()](healthkit/hkhealthstore/wheelchairuse().md)
