---
title: matchFirst
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nscalendar/options/matchfirst
---

# matchFirst

Specifies that, if there are two or more matching times, the operation should return the first occurrence.

## Declaration

```swift
static var matchFirst: NSCalendar.Options { get }
```

## See Also

### Constants

- [wrapComponents](foundation/nscalendar/options/wrapcomponents.md)
- [matchStrictly](foundation/nscalendar/options/matchstrictly.md)
- [searchBackwards](foundation/nscalendar/options/searchbackwards.md)
- [matchPreviousTimePreservingSmallerUnits](foundation/nscalendar/options/matchprevioustimepreservingsmallerunits.md)
- [matchNextTimePreservingSmallerUnits](foundation/nscalendar/options/matchnexttimepreservingsmallerunits.md)
- [matchNextTime](foundation/nscalendar/options/matchnexttime.md)
- [matchLast](foundation/nscalendar/options/matchlast.md)
- [NSWrapCalendarComponents](foundation/nswrapcalendarcomponents.md)
