<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICalendarViewDelegate/calendarView(_:decorationFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICalendarViewDelegate(im)calendarView:decorationForDateComponents:"
  },
  "title" : "calendarView(_:decorationFor:)"
}
-->

# calendarView(_:decorationFor:)

Creates a calendar view decoration for the date represented by the date components you provide.

```
optional func calendarView(_ calendarView: UICalendarView, decorationFor dateComponents: DateComponents) -> UICalendarView.Decoration?
```

## Parameters

`calendarView`

The calendar view object requesting the decoration.

`dateComponents`

Date components that represent the date for the calendar view to display a decoration.

## Return Value

A calendar view decoration.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)