---
title: "calendar(_:)"
framework: corespotlight
role: symbol
role_heading: Type Method
path: "corespotlight/spotlightsearchtool/contentdomain/calendar(_:)"
---

# calendar(_:)

Calendar events, meetings, and scheduled items with custom attribute mapping.

## Declaration

```swift
static func calendar(_ config: SpotlightSearchTool.ContentDomain.Calendar) -> SpotlightSearchTool.ContentDomain
```

## See Also

### Getting the calendar domain

- [calendar](corespotlight/spotlightsearchtool/contentdomain/calendar-swift.type.property.md)
- [SpotlightSearchTool.ContentDomain.Calendar](corespotlight/spotlightsearchtool/contentdomain/calendar-swift.struct.md)
