---
title: Calendar.MatchingPolicy.strict
framework: foundation
role: symbol
role_heading: Case
path: foundation/calendar/matchingpolicy/strict
---

# Calendar.MatchingPolicy.strict

If specified, the algorithm travels as far forward or backward as necessary looking for a match.

## Declaration

```swift
case strict
```

## Discussion

Discussion For example, if searching for Feb 29 in the Gregorian calendar, the algorithm may choose March 1 instead (for example, if the year is not a leap year). If you wish to find the next Feb 29 without the algorithm adjusting the next higher component in the specified DateComponents, then use the strict option. note: There are ultimately implementation-defined limits in how far distant the search will go.

## See Also

### Enumeration Cases

- [Calendar.MatchingPolicy.nextTime](foundation/calendar/matchingpolicy/nexttime.md)
- [Calendar.MatchingPolicy.nextTimePreservingSmallerComponents](foundation/calendar/matchingpolicy/nexttimepreservingsmallercomponents.md)
- [Calendar.MatchingPolicy.previousTimePreservingSmallerComponents](foundation/calendar/matchingpolicy/previoustimepreservingsmallercomponents.md)
