---
title: daysSinceLastExposure
framework: exposurenotification
role: symbol
role_heading: Instance Property
path: exposurenotification/enexposuredetectionsummary/dayssincelastexposure
---

# daysSinceLastExposure

Number of days since the most recent exposure.

## Declaration

```swift
var daysSinceLastExposure: Int { get }
```

## Discussion

Discussion important: This property is available in iOS 12.5, and in iOS 13.5 and later. The values for this property represent the number of days since the most recent exposure, going backwards. For example, a value of 0 means that the person was exposed today, 1 was yesterday, 2 was two days ago, and so on. This property is only valid if matchedKeyCount > 0. The framework computes this property’s value across all matching exposures, not just exposures that meet or exceed minimumRiskScore or minimumRiskScoreFullRange. note: This value is only available when ENAPIVersion is set to 1 in the app’s Info.plist file.

## See Also

### Exposure Criteria

- [attenuationDurations](exposurenotification/enexposuredetectionsummary/attenuationdurations.md)
- [matchedKeyCount](exposurenotification/enexposuredetectionsummary/matchedkeycount.md)
- [maximumRiskScore](exposurenotification/enexposuredetectionsummary/maximumriskscore.md)
- [maximumRiskScoreFullRange](exposurenotification/enexposuredetectionsummary/maximumriskscorefullrange.md)
- [riskScoreSumFullRange](exposurenotification/enexposuredetectionsummary/riskscoresumfullrange.md)
- [metadata](exposurenotification/enexposuredetectionsummary/metadata.md)
- [daySummaries](exposurenotification/enexposuredetectionsummary/daysummaries.md)
